2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2022-02-10 20:34:41 +00:00
|
|
|
, isPyPy, isPy3k
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "funcsigs";
|
|
|
|
version = "1.0.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
|
|
|
|
};
|
|
|
|
|
|
|
|
# https://github.com/testing-cabal/funcsigs/issues/10
|
2022-10-30 15:09:59 +00:00
|
|
|
patches = lib.optionals (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
# requires, unittest2 and package hasn't been maintained since 2013
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "funcsigs" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
|
|
|
|
homepage = "https://github.com/aliles/funcsigs";
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|