biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pytest-mypy-plugins / default.nix
blobecc53049ee1ce6c13c4e1a99a98ed15136af375e
2   lib,
3   buildPythonPackage,
4   decorator,
5   fetchFromGitHub,
6   jinja2,
7   jsonschema,
8   mypy,
9   packaging,
10   pytest,
11   pytestCheckHook,
12   pythonOlder,
13   pyyaml,
14   regex,
15   setuptools,
16   tomlkit,
19 buildPythonPackage rec {
20   pname = "pytest-mypy-plugins";
21   version = "3.1.2";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   src = fetchFromGitHub {
27     owner = "typeddjango";
28     repo = "pytest-mypy-plugins";
29     rev = "refs/tags/${version}";
30     hash = "sha256-yme1g9Kj5guao0Lf8mbkNJRw6ipS2Wd4Io1cSlEBAGo=";
31   };
33   build-system = [ setuptools ];
35   buildInputs = [ pytest ];
37   dependencies = [
38     decorator
39     jinja2
40     jsonschema
41     mypy
42     packaging
43     pyyaml
44     regex
45     tomlkit
46   ];
48   pythonImportsCheck = [ "pytest_mypy_plugins" ];
50   nativeCheckInputs = [
51     mypy
52     pytestCheckHook
53   ];
55   preCheck = ''
56     export PATH="$PATH:$out/bin";
57   '';
59   disabledTestPaths = [ "pytest_mypy_plugins/tests/test_explicit_configs.py" ];
61   meta = with lib; {
62     description = "Pytest plugin for testing mypy types, stubs, and plugins";
63     homepage = "https://github.com/TypedDjango/pytest-mypy-plugins";
64     changelog = "https://github.com/typeddjango/pytest-mypy-plugins/releases/tag/${version}";
65     license = licenses.mit;
66     maintainers = with maintainers; [ SomeoneSerge ];
67   };