2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrs,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
filelock,
|
|
|
|
pytest,
|
|
|
|
mypy,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mypy";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.10.3";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-+EWPZCMj8Toso+LmFQn3dnlmtSe02K3M1QMsPntP09s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
mypy
|
|
|
|
filelock
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
# does not contain tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pytest_mypy" ];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mypy static type checker plugin for Pytest";
|
|
|
|
homepage = "https://github.com/dbader/pytest-mypy";
|
2024-07-27 06:49:29 +00:00
|
|
|
license = lib.licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|