Also supply the i2p extra dependency, txi2p

This commit is contained in:
Jean-Paul Calderone 2023-03-13 16:02:57 -04:00
parent 568e1b5317
commit fa2ba64d4d
3 changed files with 18 additions and 3 deletions

View File

@ -48,6 +48,7 @@ callPackage ./nix/tahoe-lafs.nix {
# when files that make no difference to the package have changed.
tahoe-lafs-src = pkgs.lib.cleanSource ./.;
# pycddl isn't packaged in nixpkgs so supply our own package of it.
# Some dependencies aren't packaged in nixpkgs so supply our own packages.
pycddl = callPackage ./nix/pycddl.nix { };
txi2p = callPackage ./nix/txi2p.nix { };
}

View File

@ -32,7 +32,7 @@
, txtorcon
# i2p extra dependencies
, txi2p-tahoe
, txi2p
# test dependencies
, beautifulsoup4
@ -56,7 +56,7 @@ let
pythonExtraDependencies = {
tor = [ txtorcon ];
i2p = [ txi2p-tahoe ];
i2p = [ txi2p ];
};
pythonPackageDependencies = [

14
nix/txi2p.nix Normal file
View File

@ -0,0 +1,14 @@
{ fetchPypi, buildPythonPackage, parsley, twisted, unittestCheckHook }:
buildPythonPackage rec {
pname = "txi2p-tahoe";
version = "0.3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-+Vs9zaFS+ACI14JNxEme93lnWmncdZyFAmnTH0yhOiY=";
};
propagatedBuildInputs = [ twisted parsley ];
checkInputs = [ unittestCheckHook ];
pythonImportsCheck = [ "parsley" "ometa"];
}