2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, poetry-core
|
2024-01-13 08:15:51 +00:00
|
|
|
, pythonRelaxDepsHook
|
2022-08-21 13:32:41 +00:00
|
|
|
, lxml
|
2023-10-09 19:29:22 +00:00
|
|
|
, docopt-ng
|
|
|
|
, typing-extensions
|
|
|
|
, importlib-metadata
|
|
|
|
, importlib-resources
|
2022-08-21 13:32:41 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
}:
|
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-01-13 08:15:51 +00:00
|
|
|
format = "pyproject";
|
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
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2024-01-13 08:15:51 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"docopt-ng"
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
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; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "A 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";
|
|
|
|
homepage = "https://github.com/h4l/rnginline";
|
2022-08-21 13:32:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lesuisse ];
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
}
|