tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.envisage: 4.9.2 -> 5.0.0
Robert T. McGibbon
5 years ago
24109ffd
cfd96284
+18
-20
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
apptools
default.nix
envisage
default.nix
+12
-2
pkgs/development/python-modules/apptools/default.nix
···
1
1
{ lib, fetchPypi, buildPythonPackage
2
2
-
, configobj, six, traitsui
2
2
+
, fetchpatch, configobj, six, traitsui
3
3
, pytestCheckHook, tables, pandas
4
4
-
, importlib-resources
4
4
+
, pythonOlder, importlib-resources
5
5
}:
6
6
7
7
buildPythonPackage rec {
···
13
13
sha256 = "12x5lcs1cllpybz7f0i1lcwvmqsaa5n818wb2165lj049wqxx4yh";
14
14
};
15
15
16
16
+
patches = [
17
17
+
# python39: importlib_resources -> importlib.resources. This patch will be included
18
18
+
# in the next release after 5.1.0.
19
19
+
(fetchpatch {
20
20
+
url = "https://github.com/enthought/apptools/commit/0ae4f52f19a8c0ca9d7926e17c7de949097f24b4.patch";
21
21
+
sha256 = "165aiwjisr5c3lasg7xblcha7y1y5bq23vi3g9gc80c24bzwcbsw";
22
22
+
})
23
23
+
];
24
24
+
16
25
propagatedBuildInputs = [
17
26
configobj
18
27
six
19
28
traitsui
29
29
+
] ++ lib.optionals (pythonOlder "3.9") [
20
30
importlib-resources
21
31
];
22
32
+6
-18
pkgs/development/python-modules/envisage/default.nix
···
1
1
-
{ lib, fetchPypi, fetchpatch, isPy27
1
1
+
{ lib, fetchPypi, isPy27
2
2
, buildPythonPackage
3
3
-
, traits, apptools
4
4
-
, python, ipykernel, ipython
3
3
+
, traits, apptools, pytestCheckHook
4
4
+
, ipykernel, ipython
5
5
}:
6
6
7
7
buildPythonPackage rec {
8
8
pname = "envisage";
9
9
-
version = "4.9.2";
9
9
+
version = "5.0.0";
10
10
11
11
disabled = isPy27;
12
12
13
13
src = fetchPypi {
14
14
inherit pname version;
15
15
-
sha256 = "1srjmkhnz84nz5jd72vdsnc4fn7dd9jr8nyf3hzk6yx1dsn815gd";
15
15
+
sha256 = "0zrxlq4v3091727vf10ngc8418sp26raxa8q83i4h0sydfkh2dic";
16
16
};
17
17
18
18
propagatedBuildInputs = [ traits apptools ];
···
21
21
export HOME=$PWD/HOME
22
22
'';
23
23
24
24
-
# fix a test failure; should be merged in next release
25
25
-
patches = [ (fetchpatch {
26
26
-
url = "https://github.com/enthought/envisage/pull/248/commits/7b6d2dd615d5cb7455b200eb8f37e030bbf4df9e.patch";
27
27
-
sha256 = "0a3dmbpxwsn1bkjcjv9v7b751rcmppj6hc9wcgiayg4l9r2nrvyh";
28
28
-
}) ];
29
29
-
30
24
checkInputs = [
31
31
-
ipykernel ipython
25
25
+
ipykernel ipython pytestCheckHook
32
26
];
33
33
-
34
34
-
checkPhase = ''
35
35
-
runHook preCheck
36
36
-
${python.interpreter} -m unittest
37
37
-
runHook postCheck
38
38
-
'';
39
27
40
28
meta = with lib; {
41
29
description = "Framework for building applications whose functionalities can be extended by adding 'plug-ins'";