2022-08-21 13:32:41 +00:00
|
|
|
{ lib
|
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
|
|
|
, lxml
|
|
|
|
, docopt
|
|
|
|
, six
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "rnginline";
|
|
|
|
version = "0.0.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-j4W4zwHA4yA6iAFVa/LDKp00eeCX3PbmWkjd2LSUGfk=";
|
2021-12-06 16:07:01 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
patches = [
|
|
|
|
# Fix failing tests. Should be included in releases after 0.0.2
|
|
|
|
# https://github.com/h4l/rnginline/issues/3
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/h4l/rnginline/commit/b1d1c8cda2a17d46627309950f2442021749c07e.patch";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-XbisEwun2wPOp7eqW2YDVdayJ4sjAMG/ezFwgoCKe9o=";
|
2022-08-21 13:32:41 +00:00
|
|
|
name = "fix_tests_failing_collect.patch";
|
|
|
|
})
|
|
|
|
];
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
docopt
|
|
|
|
lxml
|
|
|
|
six
|
|
|
|
];
|
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
|
|
|
};
|
|
|
|
}
|