1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyannotate
5, pytest
6}:
7
8buildPythonPackage rec {
9 version = "1.0.3";
10 pname = "pytest-annotate";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "1ef5924aca93a7b47edaf46a38284fb5a173eed5e3b1a93ec00c8e35f0dd76ab";
15 };
16
17 buildInputs = [
18 pytest
19 ];
20
21 propagatedBuildInputs = [
22 pyannotate
23 ];
24
25 postPatch = ''
26 substituteInPlace setup.py \
27 --replace "pytest>=3.2.0,<4.0.0" "pytest"
28 '';
29
30 # no testing in a testing module...
31 doCheck = false;
32
33 meta = with lib; {
34 broken = true; # unmaintained and incompatible with pytest>=6.0
35 homepage = "https://github.com/kensho-technologies/pytest-annotate";
36 description = "Generate PyAnnotate annotations from your pytest tests";
37 license = licenses.asl20;
38 maintainers = [ maintainers.costrouc ];
39 };
40}