nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonAtLeast,
6 setuptools,
7 setuptools-scm,
8 parsley,
9 python,
10 twisted,
11}:
12
13buildPythonPackage rec {
14 pname = "txi2p-tahoe";
15 version = "0.3.7";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "tahoe-lafs";
20 repo = "txi2p";
21 tag = version;
22 hash = "sha256-u/IOhxK9jWC/tTKKLsc4PexbCuki+yEtMNw7LuQKmuk=";
23 };
24
25 # 194/263 tests fail on python 3.14
26 # https://github.com/tahoe-lafs/txi2p/issues/10
27 disabled = pythonAtLeast "3.14";
28
29 nativeBuildInputs = [
30 setuptools
31 setuptools-scm
32 ];
33
34 propagatedBuildInputs = [
35 parsley
36 twisted
37 ];
38
39 pythonImportsCheck = [ "txi2p" ];
40
41 checkPhase = ''
42 runHook preCheck
43 ${python.interpreter} -m twisted.trial txi2p
44 runHook postCheck
45 '';
46
47 meta = {
48 description = "I2P bindings for Twisted";
49 homepage = "https://github.com/tahoe-lafs/txi2p";
50 license = lib.licenses.isc;
51 maintainers = with lib.maintainers; [ dotlambda ];
52 };
53}