python310Packages.txi2p-tahoe: init at 0.3.7

This commit is contained in:
Robert Schütz
2023-03-08 18:39:15 -08:00
parent e3a07ea752
commit 0397322d80
2 changed files with 52 additions and 0 deletions
@@ -0,0 +1,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 ];
};
}
+2
View File
@@ -11894,6 +11894,8 @@ self: super: with self; {
txgithub = callPackage ../development/python-modules/txgithub { };
txi2p-tahoe = callPackage ../development/python-modules/txi2p-tahoe { };
txredisapi = callPackage ../development/python-modules/txredisapi { };
txrequests = callPackage ../development/python-modules/txrequests { };