python310Packages.rstcheck-core: init at 1.0.2
This commit is contained in:
parent
510f1462a2
commit
ae42114134
2 changed files with 65 additions and 0 deletions
63
pkgs/development/python-modules/rstcheck-core/default.nix
Normal file
63
pkgs/development/python-modules/rstcheck-core/default.nix
Normal file
|
@ -0,0 +1,63 @@
|
|||
{ 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.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rstcheck";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-XNr+prK9VDP66ZaFvh3Qrx+eJs6mnVO8lvoMC/qrCLs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
docutils
|
||||
importlib-metadata
|
||||
pydantic
|
||||
types-docutils
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'types-docutils = ">=0.18, <0.19"' 'types-docutils = ">=0.18"'
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"rstcheck_core"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Library for checking syntax of reStructuredText";
|
||||
homepage = "https://github.com/rstcheck/rstcheck-core";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -9417,6 +9417,8 @@ in {
|
|||
|
||||
rstcheck = callPackage ../development/python-modules/rstcheck { };
|
||||
|
||||
rstcheck-core = callPackage ../development/python-modules/rstcheck-core { };
|
||||
|
||||
rtmidi-python = callPackage ../development/python-modules/rtmidi-python {
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) CoreAudio CoreMIDI CoreServices;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue