mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 14:33:22 +00:00
e35206bd7c
Diff: https://github.com/rstcheck/rstcheck-core/compare/refs/tags/v1.0.2...v1.0.3 Changelog: https://github.com/rstcheck/rstcheck-core/blob/v1.0.3/CHANGELOG.md
60 lines
1.1 KiB
Nix
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
|
|
];
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|