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