Skip to content

Commit 0397322

Browse files
committed
python310Packages.txi2p-tahoe: init at 0.3.7
1 parent e3a07ea commit 0397322

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{ lib
2+
, buildPythonPackage
3+
, fetchFromGitHub
4+
, setuptools
5+
, setuptools-scm
6+
, parsley
7+
, twisted
8+
, python
9+
}:
10+
11+
buildPythonPackage rec {
12+
pname = "txi2p-tahoe";
13+
version = "0.3.7";
14+
15+
format = "pyproject";
16+
17+
src = fetchFromGitHub {
18+
owner = "tahoe-lafs";
19+
repo = "txi2p";
20+
rev = "refs/tags/${version}";
21+
hash = "sha256-u/IOhxK9jWC/tTKKLsc4PexbCuki+yEtMNw7LuQKmuk=";
22+
};
23+
24+
nativeBuildInputs = [
25+
setuptools
26+
setuptools-scm
27+
];
28+
29+
SETUPTOOLS_SCM_PRETEND_VERSION = version;
30+
31+
propagatedBuildInputs = [
32+
parsley
33+
twisted
34+
];
35+
36+
pythonImportsCheck = [ "txi2p" ];
37+
38+
checkPhase = ''
39+
runHook preCheck
40+
${python.interpreter} -m twisted.trial txi2p
41+
runHook postCheck
42+
'';
43+
44+
meta = {
45+
description = "I2P bindings for Twisted";
46+
homepage = "https://github.com/tahoe-lafs/txi2p";
47+
license = lib.licenses.isc;
48+
maintainers = with lib.maintainers; [ dotlambda ];
49+
};
50+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11894,6 +11894,8 @@ self: super: with self; {
1189411894

1189511895
txgithub = callPackage ../development/python-modules/txgithub { };
1189611896

11897+
txi2p-tahoe = callPackage ../development/python-modules/txi2p-tahoe { };
11898+
1189711899
txredisapi = callPackage ../development/python-modules/txredisapi { };
1189811900

1189911901
txrequests = callPackage ../development/python-modules/txrequests { };

0 commit comments

Comments
 (0)