2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
poetry-core,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
lxml,
|
|
|
|
docopt-ng,
|
|
|
|
typing-extensions,
|
|
|
|
importlib-metadata,
|
|
|
|
importlib-resources,
|
|
|
|
pytestCheckHook,
|
|
|
|
mock,
|
2022-08-21 13:32:41 +00:00
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rnginline";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.0.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-JWqzs+OqOynIAWYVgGrZiuiCqObAgGe6rBt0DcP3U6E=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"docopt-ng"
|
|
|
|
"importlib-metadata"
|
|
|
|
"lxml"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ poetry-core ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2023-10-09 19:29:22 +00:00
|
|
|
docopt-ng
|
2022-08-21 13:32:41 +00:00
|
|
|
lxml
|
2023-10-09 19:29:22 +00:00
|
|
|
typing-extensions
|
|
|
|
importlib-metadata
|
|
|
|
importlib-resources
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-21 13:32:41 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
pythonImportsCheck = [ "rnginline" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python library and command-line tool for loading multi-file RELAX NG schemas from arbitary URLs, and flattening them into a single RELAX NG schema";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://github.com/h4l/rnginline";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/h4l/rnginline/blob/${version}/CHANGELOG.md";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lesuisse ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|