2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
parsley,
|
|
|
|
twisted,
|
|
|
|
python,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|