2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-11 00:31:12 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyannotate
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-16 10:43:13 +01:00
|
|
|
version = "1.0.3";
|
2018-10-11 00:31:12 +01:00
|
|
|
pname = "pytest-annotate";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 10:43:13 +01:00
|
|
|
sha256 = "1ef5924aca93a7b47edaf46a38284fb5a173eed5e3b1a93ec00c8e35f0dd76ab";
|
2018-10-11 00:31:12 +01:00
|
|
|
};
|
|
|
|
|
2019-07-16 22:39:20 +01:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2019-07-16 22:32:50 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyannotate
|
|
|
|
];
|
2018-10-11 00:31:12 +01:00
|
|
|
|
2019-07-16 22:39:20 +01:00
|
|
|
postPatch = ''
|
2019-07-16 22:32:50 +01:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pytest>=3.2.0,<4.0.0" "pytest"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no testing in a testing module...
|
2018-10-11 00:31:12 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-05-07 18:42:50 +01:00
|
|
|
broken = true; # unmaintained and incompatible with pytest>=6.0
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/kensho-technologies/pytest-annotate";
|
2018-10-11 00:31:12 +01:00
|
|
|
description = "Generate PyAnnotate annotations from your pytest tests";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|