2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2022-01-11 21:28:02 +00:00
|
|
|
, isPyPy, isPy3k
|
2019-05-15 02:56:38 +00:00
|
|
|
}:
|
2017-07-28 07:32:38 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "funcsigs";
|
|
|
|
version = "1.0.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0l4g5818ffyfmfs1a924811azhjj8ax9xd1cffr1mzd3ycn0zfx7";
|
|
|
|
};
|
|
|
|
|
2019-05-15 02:56:38 +00:00
|
|
|
# https://github.com/testing-cabal/funcsigs/issues/10
|
2021-01-24 00:29:22 +00:00
|
|
|
patches = lib.optional (isPyPy && isPy3k) [ ./fix-pypy3-tests.patch ];
|
2019-05-15 02:56:38 +00:00
|
|
|
|
2022-01-11 21:28:02 +00:00
|
|
|
# requires, unittest2 and package hasn't been maintained since 2013
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "funcsigs" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-28 07:32:38 +00:00
|
|
|
description = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/aliles/funcsigs";
|
2019-07-03 09:27:39 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2017-07-28 07:32:38 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|