python312Packages.pint-xarray: init at 0.4 (#377344)
[NixPkgs.git] / pkgs / development / python-modules / pytest-annotate / default.nix
blob31ed87e0321382894ddbcddb7652b60fc92474cc
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pyannotate,
6   pytest,
7 }:
9 buildPythonPackage rec {
10   pname = "pytest-annotate";
11   version = "1.0.5";
12   format = "setuptools";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-CSaTIPjSGHKCR0Nvet6W8zzz/oWEC0BjIULZ+JaMH9A=";
17   };
19   buildInputs = [ pytest ];
21   propagatedBuildInputs = [ pyannotate ];
23   postPatch = ''
24     substituteInPlace setup.py \
25       --replace "pytest>=3.2.0,<7.0.0" "pytest>=3.2.0"
26   '';
28   # Module has no tests
29   doCheck = false;
31   pythonImportsCheck = [ "pytest_annotate" ];
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   };