depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-mypy/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

46 lines
809 B
Nix

{
lib,
attrs,
buildPythonPackage,
fetchPypi,
filelock,
pytest,
mypy,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pytest-mypy";
version = "0.10.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-+EWPZCMj8Toso+LmFQn3dnlmtSe02K3M1QMsPntP09s=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
buildInputs = [ pytest ];
propagatedBuildInputs = [
attrs
mypy
filelock
];
# does not contain tests
doCheck = false;
pythonImportsCheck = [ "pytest_mypy" ];
meta = {
description = "Mypy static type checker plugin for Pytest";
homepage = "https://github.com/dbader/pytest-mypy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sigmanificient ];
};
}