2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, chevron
|
2022-02-10 20:34:41 +00:00
|
|
|
, decorator
|
|
|
|
, fetchFromGitHub
|
2022-01-03 16:56:52 +00:00
|
|
|
, mypy
|
|
|
|
, pytest
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2022-01-03 16:56:52 +00:00
|
|
|
, regex
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mypy-plugins";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "1.10.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "typeddjango";
|
|
|
|
repo = pname;
|
2022-09-22 12:36:57 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "sha256-QvUh/vIvzCfEYNC0Y388qavGvbTg0yuT4j0SttUpUWs=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
chevron
|
|
|
|
pyyaml
|
|
|
|
mypy
|
|
|
|
decorator
|
|
|
|
regex
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mypy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH="$PATH:$out/bin";
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_mypy_plugins"
|
|
|
|
];
|
2022-01-03 16:56:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Pytest plugin for testing mypy types, stubs, and plugins";
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://github.com/TypedDjango/pytest-mypy-plugins";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|