1{ lib
2, buildPythonPackage
3, chevron
4, decorator
5, fetchFromGitHub
6, mypy
7, pytest
8, pytestCheckHook
9, pythonOlder
10, pyyaml
11, regex
12}:
13
14buildPythonPackage rec {
15 pname = "pytest-mypy-plugins";
16 version = "1.10.1";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "typeddjango";
23 repo = pname;
24 rev = "refs/tags/${version}";
25 sha256 = "sha256-7Qow315zuZB6BNIIm6QR9ZMFH6E/VSp2vRBpONlqYhM=";
26 };
27
28 buildInputs = [
29 pytest
30 ];
31
32 propagatedBuildInputs = [
33 chevron
34 pyyaml
35 mypy
36 decorator
37 regex
38 ];
39
40 checkInputs = [
41 mypy
42 pytestCheckHook
43 ];
44
45 preCheck = ''
46 export PATH="$PATH:$out/bin";
47 '';
48
49 pythonImportsCheck = [
50 "pytest_mypy_plugins"
51 ];
52
53 meta = with lib; {
54 description = "Pytest plugin for testing mypy types, stubs, and plugins";
55 homepage = "https://github.com/TypedDjango/pytest-mypy-plugins";
56 license = licenses.mit;
57 maintainers = with maintainers; [ SomeoneSerge ];
58 };
59}