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-11-02 22:02:43 +00:00
|
|
|
version = "1.10.1";
|
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}";
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-7Qow315zuZB6BNIIm6QR9ZMFH6E/VSp2vRBpONlqYhM=";
|
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
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
disabledTests = [
|
|
|
|
# ...TypecheckAssertionError: Invalid output:
|
|
|
|
"with_out"
|
|
|
|
"add_mypypath_env_var_to_package_searc"
|
|
|
|
"error_case"
|
|
|
|
"skip_if_false"
|
|
|
|
];
|
|
|
|
|
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";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/typeddjango/pytest-mypy-plugins/releases/tag/${version}";
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ SomeoneSerge ];
|
|
|
|
};
|
|
|
|
}
|