nixpkgs/pkgs/development/python-modules/txi2p-tahoe/default.nix
Martin Weinelt 8056f9250c
treewide: remove redundant SETUPTOOLS_SCM_PRETEND_VERSION usage
The setuptools-scm packages gained a setup hook, that sets it to the
derivation version automatically, so setting it to that manually has
become redundant.

This also affects downstream consumers of setuptools-scm, like hatch-vcs
or flit-scm.
2023-12-20 20:16:39 +01:00

49 lines
864 B
Nix

{ 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
];
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 ];
};
}