nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 decorator,
5 fetchFromGitHub,
6 jinja2,
7 jsonschema,
8 mypy,
9 packaging,
10 pytest,
11 pytestCheckHook,
12 pyyaml,
13 regex,
14 setuptools,
15 tomlkit,
16}:
17
18buildPythonPackage rec {
19 pname = "pytest-mypy-plugins";
20 version = "3.2.0";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "typeddjango";
25 repo = "pytest-mypy-plugins";
26 tag = version;
27 hash = "sha256-60VxMUUCIP+Mp+OsgdyRTPZVLGC/3iaMxxhw02ABB9k=";
28 };
29
30 build-system = [ setuptools ];
31
32 buildInputs = [ pytest ];
33
34 dependencies = [
35 decorator
36 jinja2
37 jsonschema
38 mypy
39 packaging
40 pyyaml
41 regex
42 tomlkit
43 ];
44
45 pythonImportsCheck = [ "pytest_mypy_plugins" ];
46
47 nativeCheckInputs = [
48 mypy
49 pytestCheckHook
50 ];
51
52 preCheck = ''
53 export PATH="$PATH:$out/bin";
54 '';
55
56 disabledTestPaths = [ "pytest_mypy_plugins/tests/test_explicit_configs.py" ];
57
58 meta = {
59 description = "Pytest plugin for testing mypy types, stubs, and plugins";
60 homepage = "https://github.com/TypedDjango/pytest-mypy-plugins";
61 changelog = "https://github.com/typeddjango/pytest-mypy-plugins/releases/tag/${version}";
62 license = lib.licenses.mit;
63 maintainers = with lib.maintainers; [ SomeoneSerge ];
64 };
65}