tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.dill: 0.3.1.1 -> 0.3.4
Fabian Affolter
4 years ago
1bec00a4
a143a6dd
+30
-20
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
dill
default.nix
+30
-20
pkgs/development/python-modules/dill/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
-
, fetchPypi
3
3
+
, fetchFromGitHub
4
4
, isPy27
5
5
-
, nose
5
5
+
, pytestCheckHook
6
6
}:
7
7
8
8
buildPythonPackage rec {
9
9
pname = "dill";
10
10
-
version = "0.3.1.1";
10
10
+
version = "0.3.4";
11
11
+
doCheck = !isPy27;
11
12
12
12
-
src = fetchPypi {
13
13
-
inherit pname version;
14
14
-
sha256 = "42d8ef819367516592a825746a18073ced42ca169ab1f5f4044134703e7a049c";
13
13
+
src = fetchFromGitHub {
14
14
+
owner = "uqfoundation";
15
15
+
repo = pname;
16
16
+
rev = "${pname}-${version}";
17
17
+
sha256 = "0x702gh50wb3n820p2p9w49cn4a354y207pllwc7snfxprv6hypm";
15
18
};
16
19
17
17
-
# python2 can't import a test fixture
18
18
-
doCheck = !isPy27;
19
19
-
checkInputs = [ nose ];
20
20
-
checkPhase = ''
21
21
-
PYTHONPATH=$PWD/tests:$PYTHONPATH
22
22
-
nosetests \
23
23
-
--ignore-files="test_classdef" \
24
24
-
--ignore-files="test_objects" \
25
25
-
--ignore-files="test_selected" \
26
26
-
--exclude="test_the_rest" \
27
27
-
--exclude="test_importable"
28
28
-
'';
20
20
+
checkInputs = [
21
21
+
pytestCheckHook
22
22
+
];
23
23
+
29
24
# Tests seem to fail because of import pathing and referencing items/classes in modules.
30
25
# Seems to be a Nix/pathing related issue, not the codebase, so disabling failing tests.
26
26
+
disabledTestPaths = [
27
27
+
"tests/test_diff.py"
28
28
+
"tests/test_module.py"
29
29
+
"tests/test_objects.py"
30
30
+
];
31
31
32
32
-
meta = {
32
32
+
disabledTests = [
33
33
+
"test_class_objects"
34
34
+
"test_method_decorator"
35
35
+
"test_importable"
36
36
+
"test_the_rest"
37
37
+
];
38
38
+
39
39
+
pythonImportsCheck = [ "dill" ];
40
40
+
41
41
+
meta = with lib; {
33
42
description = "Serialize all of python (almost)";
34
43
homepage = "https://github.com/uqfoundation/dill/";
35
35
-
license = lib.licenses.bsd3;
44
44
+
license = licenses.bsd3;
45
45
+
maintainers = with maintainers; [ ];
36
46
};
37
47
}