nixpkgs/pkgs/development/python-modules/rstcheck-core/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

60 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, docutils
, fetchFromGitHub
, importlib-metadata
, mock
, poetry-core
, pydantic
, pytest-mock
, pytestCheckHook
, pythonOlder
, types-docutils
, typing-extensions
}:
buildPythonPackage rec {
pname = "rstcheck-core";
version = "1.0.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rstcheck";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9U+GhkwBr+f3yEe7McOxqPRUuTp9vP+3WT5wZ92n32w=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
docutils
importlib-metadata
pydantic
types-docutils
typing-extensions
];
nativeCheckInputs = [
mock
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [
"rstcheck_core"
];
meta = with lib; {
description = "Library for checking syntax of reStructuredText";
homepage = "https://github.com/rstcheck/rstcheck-core";
changelog = "https://github.com/rstcheck/rstcheck-core/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}