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