2022-06-07 12:37:09 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2018-10-10 19:31:12 -04:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyannotate
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-annotate";
|
2022-06-07 23:29:03 +00:00
|
|
|
version = "1.0.5";
|
2021-12-08 08:52:57 +01:00
|
|
|
format = "setuptools";
|
2018-10-10 19:31:12 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-13 01:50:35 +02:00
|
|
|
hash = "sha256-CSaTIPjSGHKCR0Nvet6W8zzz/oWEC0BjIULZ+JaMH9A=";
|
2018-10-10 19:31:12 -04:00
|
|
|
};
|
|
|
|
|
2019-07-16 17:39:20 -04:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
2019-07-16 17:32:50 -04:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyannotate
|
|
|
|
];
|
2018-10-10 19:31:12 -04:00
|
|
|
|
2022-06-07 12:37:09 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "pytest>=3.2.0,<7.0.0" "pytest>=3.2.0"
|
|
|
|
'';
|
|
|
|
|
2021-12-08 08:52:57 +01:00
|
|
|
# Module has no tests
|
2018-10-10 19:31:12 -04:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-12-08 08:52:57 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_annotate"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2022-05-29 22:45:48 +02:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
2018-10-10 19:31:12 -04:00
|
|
|
description = "Generate PyAnnotate annotations from your pytest tests";
|
2021-12-08 08:52:57 +01:00
|
|
|
homepage = "https://github.com/kensho-technologies/pytest-annotate";
|
2018-10-10 19:31:12 -04:00
|
|
|
license = licenses.asl20;
|
2021-12-08 08:52:57 +01:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2018-10-10 19:31:12 -04:00
|
|
|
};
|
|
|
|
}
|