nixpkgs/pkgs/development/python-modules/rnginline/default.nix
Martin Weinelt 3c001233fd
python311Packages.rnginline: relax docopt-ng constraint
Checking runtime dependencies for rnginline-1.0.0-py3-none-any.whl
  - docopt-ng<0.9.0,>=0.8.1 not satisifeid by version 0.9.0
2023-12-20 20:10:32 +01:00

56 lines
1.0 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";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-JWqzs+OqOynIAWYVgGrZiuiCqObAgGe6rBt0DcP3U6E=";
};
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"docopt-ng"
];
propagatedBuildInputs = [
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";
license = licenses.asl20;
maintainers = with maintainers; [ lesuisse ];
};
}