tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.rnginline: Enable more tests
Jonas Heinrich
3 years ago
5514fc99
1b6fb6f6
+34
-12
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
rnginline
default.nix
+34
-12
pkgs/development/python-modules/rnginline/default.nix
reviewed
···
1
1
-
{ lib, fetchPypi, buildPythonPackage, lxml, docopt, six, pytestCheckHook, mock }:
1
1
+
{ lib
2
2
+
, fetchPypi
3
3
+
, buildPythonPackage
4
4
+
, lxml
5
5
+
, docopt
6
6
+
, six
7
7
+
, pytestCheckHook
8
8
+
, mock
9
9
+
, fetchpatch
10
10
+
}:
2
11
3
12
buildPythonPackage rec {
4
13
pname = "rnginline";
···
18
9
sha256 = "sha256-j4W4zwHA4yA6iAFVa/LDKp00eeCX3PbmWkjd2LSUGfk=";
19
10
};
20
11
21
21
-
propagatedBuildInputs = [ lxml docopt six ];
22
22
-
23
23
-
checkInputs = [ pytestCheckHook mock ];
24
24
-
25
25
-
# Those tests does not succeed, a test dependency is likely missing but nothing is specified upstream
26
26
-
disabledTestPaths = [
27
27
-
"rnginline/test/test_cmdline.py"
28
28
-
"rnginline/test/test_rnginline.py"
12
12
+
patches = [
13
13
+
# Fix failing tests. Should be included in releases after 0.0.2
14
14
+
# https://github.com/h4l/rnginline/issues/3
15
15
+
(fetchpatch {
16
16
+
url = "https://github.com/h4l/rnginline/commit/b1d1c8cda2a17d46627309950f2442021749c07e.patch";
17
17
+
sha256 = "sha256-XbisEwun2wPOp7eqW2YDVdayJ4sjAMG/ezFwgoCKe9o=";
18
18
+
name = "fix_tests_failing_collect.patch";
19
19
+
})
29
20
];
30
21
31
31
-
meta = {
22
22
+
propagatedBuildInputs = [
23
23
+
docopt
24
24
+
lxml
25
25
+
six
26
26
+
];
27
27
+
28
28
+
checkInputs = [
29
29
+
mock
30
30
+
pytestCheckHook
31
31
+
];
32
32
+
33
33
+
pythonImportsCheck = [ "rnginline" ];
34
34
+
35
35
+
meta = with lib; {
32
36
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";
33
37
homepage = "https://github.com/h4l/rnginline";
34
34
-
license = lib.licenses.asl20;
35
35
-
maintainers = [ lib.maintainers.lesuisse ];
38
38
+
license = licenses.asl20;
39
39
+
maintainers = with maintainers; [ lesuisse ];
36
40
};
37
41
}