2018-10-10 23:31:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyannotate
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-10-16 09:43:13 +00:00
|
|
|
version = "1.0.3";
|
2018-10-10 23:31:12 +00:00
|
|
|
pname = "pytest-annotate";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 09:43:13 +00:00
|
|
|
sha256 = "1ef5924aca93a7b47edaf46a38284fb5a173eed5e3b1a93ec00c8e35f0dd76ab";
|
2018-10-10 23:31:12 +00:00
|
|
|
};
|
|
|
|
|
2019-07-16 21:39:20 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2019-07-16 21:32:50 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyannotate
|
|
|
|
];
|
2018-10-10 23:31:12 +00:00
|
|
|
|
2019-07-16 21:39:20 +00:00
|
|
|
postPatch = ''
|
2019-07-16 21:32:50 +00:00
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pytest>=3.2.0,<4.0.0" "pytest"
|
|
|
|
'';
|
|
|
|
|
|
|
|
# no testing in a testing module...
|
2018-10-10 23:31:12 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/kensho-technologies/pytest-annotate;
|
|
|
|
description = "Generate PyAnnotate annotations from your pytest tests";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|