nixpkgs/pkgs/development/python-modules/rnginline/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
1.1 KiB
Nix

{
lib,
fetchPypi,
buildPythonPackage,
poetry-core,
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 ];
dependencies = [
docopt-ng
lxml
typing-extensions
importlib-metadata
importlib-resources
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "rnginline" ];
meta = {
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";
homepage = "https://github.com/h4l/rnginline";
changelog = "https://github.com/h4l/rnginline/blob/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ lesuisse ];
};
}