depot/third_party/nixpkgs/pkgs/development/python-modules/rnginline/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

58 lines
1.2 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
poetry-core,
pythonRelaxDepsHook,
lxml,
docopt-ng,
typing-extensions,
importlib-metadata,
importlib-resources,
pytestCheckHook,
mock,
}:
buildPythonPackage rec {
pname = "rnginline";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-JWqzs+OqOynIAWYVgGrZiuiCqObAgGe6rBt0DcP3U6E=";
};
pythonRelaxDeps = [
"docopt-ng"
"importlib-metadata"
"lxml"
];
build-system = [ poetry-core ];
nativeBuildInputs = [ pythonRelaxDepsHook ];
dependencies = [
docopt-ng
lxml
typing-extensions
importlib-metadata
importlib-resources
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "rnginline" ];
meta = with lib; {
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";
changelog = "https://github.com/h4l/rnginline/blob/${version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ lesuisse ];
};
}