1{ lib
2, stdenv
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 = [
20 pytest
21 ];
22
23 propagatedBuildInputs = [
24 pyannotate
25 ];
26
27 postPatch = ''
28 substituteInPlace setup.py \
29 --replace "pytest>=3.2.0,<7.0.0" "pytest>=3.2.0"
30 '';
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "pytest_annotate"
37 ];
38
39 meta = with lib; {
40 broken = stdenv.isDarwin;
41 description = "Generate PyAnnotate annotations from your pytest tests";
42 homepage = "https://github.com/kensho-technologies/pytest-annotate";
43 license = licenses.asl20;
44 maintainers = with maintainers; [ ];
45 };
46}