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 = "1.0.1";
16 pyproject = true;
17
18 src = fetchPypi {
19 pname = "pytest_mypy";
20 inherit version;
21 hash = "sha256-P1/K/3XIDczGtoz17MKOG75x6VMJRp63oov0CM5VwHQ=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 setuptools-scm
27 ];
28
29 buildInputs = [ pytest ];
30
31 propagatedBuildInputs = [
32 attrs
33 mypy
34 filelock
35 ];
36
37 # does not contain tests
38 doCheck = false;
39 pythonImportsCheck = [ "pytest_mypy" ];
40
41 meta = {
42 description = "Mypy static type checker plugin for Pytest";
43 homepage = "https://github.com/dbader/pytest-mypy";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ sigmanificient ];
46 };
47}