2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, sphinx
|
|
|
|
, mock
|
|
|
|
, coverage
|
|
|
|
, unittest2
|
2022-08-12 12:06:08 +00:00
|
|
|
, attrs
|
2020-04-24 23:36:52 +00:00
|
|
|
, funcsigs
|
|
|
|
, six
|
2022-08-12 12:06:08 +00:00
|
|
|
, setuptools-scm
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sigtools";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "4.0.0";
|
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-fMhKC6VuNLfxXkM3RCaPEODEp21r/s6JzswaHKkROLY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patchPhase = ''sed -i s/test_suite="'"sigtools.tests"'"/test_suite="'"unittest2.collector"'"/ setup.py'';
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
# repeated_test no longer exists in nixpkgs
|
|
|
|
# Also see: https://github.com/epsy/sigtools/issues/26
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [ sphinx mock coverage unittest2 ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utilities for working with 3.3's inspect.Signature objects.";
|
|
|
|
homepage = "https://pypi.python.org/pypi/sigtools";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|