2022-01-03 16:56:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-02-10 20:34:41 +00:00
|
|
|
, decorator
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, jinja2
|
|
|
|
, jsonschema
|
2022-01-03 16:56:52 +00:00
|
|
|
, mypy
|
2023-11-16 04:20:00 +00:00
|
|
|
, packaging
|
2022-01-03 16:56:52 +00:00
|
|
|
, pytest
|
2022-02-10 20:34:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, pyyaml
|
2022-01-03 16:56:52 +00:00
|
|
|
, regex
|
2023-11-16 04:20:00 +00:00
|
|
|
, tomlkit
|
2022-01-03 16:56:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-mypy-plugins";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "3.0.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}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-kIA2tVOsKsav4tRqZiWCMcRgbRnxAEo7SpmxC2pt9B0=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
decorator
|
2023-11-16 04:20:00 +00:00
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
mypy
|
|
|
|
packaging
|
|
|
|
pyyaml
|
2022-02-10 20:34:41 +00:00
|
|
|
regex
|
2023-11-16 04:20:00 +00:00
|
|
|
tomlkit
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pytest_mypy_plugins"
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
mypy
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export PATH="$PATH:$out/bin";
|
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"pytest_mypy_plugins/tests/test_explicit_configs.py"
|
2022-11-27 09:42:12 +00:00
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|