2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
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; {
|
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 ];
|
|
|
|
};
|
|
|
|
}
|