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