Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, filelock 5, pytest 6, mypy 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-mypy"; 12 version = "0.10.3"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-+EWPZCMj8Toso+LmFQn3dnlmtSe02K3M1QMsPntP09s="; 17 }; 18 19 nativeBuildInputs = [ setuptools-scm ]; 20 21 buildInputs = [ pytest ]; 22 23 propagatedBuildInputs = [ mypy filelock ]; 24 25 # does not contain tests 26 doCheck = false; 27 pythonImportsCheck = [ "pytest_mypy" ]; 28 29 meta = with lib; { 30 description = "Mypy static type checker plugin for Pytest"; 31 homepage = "https://github.com/dbader/pytest-mypy"; 32 license = licenses.mit; 33 maintainers = [ maintainers.costrouc ]; 34 }; 35}