1{
2 lib,
3 attrs,
4 buildPythonPackage,
5 fetchPypi,
6 filelock,
7 pytest,
8 mypy,
9 setuptools,
10 setuptools-scm,
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-mypy";
15 version = "0.10.3";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-+EWPZCMj8Toso+LmFQn3dnlmtSe02K3M1QMsPntP09s=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 setuptools-scm
26 ];
27
28 buildInputs = [ pytest ];
29
30 propagatedBuildInputs = [
31 attrs
32 mypy
33 filelock
34 ];
35
36 # does not contain tests
37 doCheck = false;
38 pythonImportsCheck = [ "pytest_mypy" ];
39
40 meta = with lib; {
41 description = "Mypy static type checker plugin for Pytest";
42 homepage = "https://github.com/dbader/pytest-mypy";
43 license = licenses.mit;
44 maintainers = with lib.maintainers; [ sigmanificient ];
45 };
46}