Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, chevron 4, decorator 5, fetchFromGitHub 6, mypy 7, pytest 8, pytestCheckHook 9, pythonOlder 10, pyyaml 11, regex 12}: 13 14buildPythonPackage rec { 15 pname = "pytest-mypy-plugins"; 16 version = "1.10.1"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "typeddjango"; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-7Qow315zuZB6BNIIm6QR9ZMFH6E/VSp2vRBpONlqYhM="; 26 }; 27 28 buildInputs = [ 29 pytest 30 ]; 31 32 propagatedBuildInputs = [ 33 chevron 34 pyyaml 35 mypy 36 decorator 37 regex 38 ]; 39 40 nativeCheckInputs = [ 41 mypy 42 pytestCheckHook 43 ]; 44 45 preCheck = '' 46 export PATH="$PATH:$out/bin"; 47 ''; 48 49 pythonImportsCheck = [ 50 "pytest_mypy_plugins" 51 ]; 52 53 disabledTests = [ 54 # ...TypecheckAssertionError: Invalid output: 55 "with_out" 56 "add_mypypath_env_var_to_package_searc" 57 "error_case" 58 "skip_if_false" 59 ]; 60 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 }; 68}