Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytest-annotate / default.nix
blob68b67f061bb1452e783e98aa1cc04521f0efa53c
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pyannotate
5 , pytest
6 }:
8 buildPythonPackage rec {
9   version = "1.0.3";
10   pname = "pytest-annotate";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "1ef5924aca93a7b47edaf46a38284fb5a173eed5e3b1a93ec00c8e35f0dd76ab";
15   };
17   buildInputs = [
18     pytest
19   ];
21   propagatedBuildInputs = [
22     pyannotate
23   ];
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace "pytest>=3.2.0,<4.0.0" "pytest"
28   '';
30   # no testing in a testing module...
31   doCheck = false;
33   meta = with lib; {
34     homepage = "https://github.com/kensho-technologies/pytest-annotate";
35     description = "Generate PyAnnotate annotations from your pytest tests";
36     license = licenses.asl20;
37     maintainers = [ maintainers.costrouc ];
38   };