1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pyannotate,
6 pytest,
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-annotate";
11 version = "1.0.5";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-CSaTIPjSGHKCR0Nvet6W8zzz/oWEC0BjIULZ+JaMH9A=";
17 };
18
19 buildInputs = [ pytest ];
20
21 propagatedBuildInputs = [ pyannotate ];
22
23 postPatch = ''
24 substituteInPlace setup.py \
25 --replace "pytest>=3.2.0,<7.0.0" "pytest>=3.2.0"
26 '';
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "pytest_annotate" ];
32
33 meta = with lib; {
34 description = "Generate PyAnnotate annotations from your pytest tests";
35 homepage = "https://github.com/kensho-technologies/pytest-annotate";
36 license = licenses.asl20;
37 maintainers = [ ];
38 };
39}