tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python.pkgs.numexpr: 2.6.2 -> 2.6.4
Frederik Rietdijk
8 years ago
d8490e34
4026ea9c
+44
-36
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
numexpr
default.nix
top-level
python-packages.nix
+43
pkgs/development/python-modules/numexpr/default.nix
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, python
5
5
+
, numpy
6
6
+
}:
7
7
+
8
8
+
buildPythonPackage rec {
9
9
+
pname = "numexpr";
10
10
+
version = "2.6.4";
11
11
+
12
12
+
src = fetchPypi {
13
13
+
inherit pname version;
14
14
+
sha256 = "f0bef9a3a5407fb8d6344cf91b658bef7c13ec8a8eb13f423822d9d2ca5af6ce";
15
15
+
};
16
16
+
17
17
+
propagatedBuildInputs = [ numpy ];
18
18
+
19
19
+
# Run the test suite.
20
20
+
# It requires the build path to be in the python search path.
21
21
+
checkPhase = ''
22
22
+
${python}/bin/${python.executable} <<EOF
23
23
+
import sysconfig
24
24
+
import sys
25
25
+
import os
26
26
+
f = "lib.{platform}-{version[0]}.{version[1]}"
27
27
+
lib = f.format(platform=sysconfig.get_platform(),
28
28
+
version=sys.version_info)
29
29
+
build = os.path.join(os.getcwd(), 'build', lib)
30
30
+
sys.path.insert(0, build)
31
31
+
import numexpr
32
32
+
r = numexpr.test()
33
33
+
if not r.wasSuccessful():
34
34
+
sys.exit(1)
35
35
+
EOF
36
36
+
'';
37
37
+
38
38
+
meta = {
39
39
+
description = "Fast numerical array expression evaluator for NumPy";
40
40
+
homepage = "https://github.com/pydata/numexpr";
41
41
+
license = lib.licenses.mit;
42
42
+
};
43
43
+
}
+1
-36
pkgs/top-level/python-packages.nix
···
12119
12119
12120
12120
numba = callPackage ../development/python-modules/numba { };
12121
12121
12122
12122
-
numexpr = buildPythonPackage rec {
12123
12123
-
version = "2.6.2";
12124
12124
-
name = "numexpr-${version}";
12125
12125
-
12126
12126
-
src = pkgs.fetchurl {
12127
12127
-
url = "mirror://pypi/n/numexpr/${name}.tar.gz";
12128
12128
-
sha256 = "6ab8ff5c19e7f452966bf5a3220b845cf3244fe0b96544f7f9acedcc2db5c705";
12129
12129
-
};
12130
12130
-
12131
12131
-
propagatedBuildInputs = with self; [ numpy ];
12132
12132
-
12133
12133
-
# Run the test suite.
12134
12134
-
# It requires the build path to be in the python search path.
12135
12135
-
checkPhase = ''
12136
12136
-
${python}/bin/${python.executable} <<EOF
12137
12137
-
import sysconfig
12138
12138
-
import sys
12139
12139
-
import os
12140
12140
-
f = "lib.{platform}-{version[0]}.{version[1]}"
12141
12141
-
lib = f.format(platform=sysconfig.get_platform(),
12142
12142
-
version=sys.version_info)
12143
12143
-
build = os.path.join(os.getcwd(), 'build', lib)
12144
12144
-
sys.path.insert(0, build)
12145
12145
-
import numexpr
12146
12146
-
r = numexpr.test()
12147
12147
-
if not r.wasSuccessful():
12148
12148
-
sys.exit(1)
12149
12149
-
EOF
12150
12150
-
'';
12151
12151
-
12152
12152
-
meta = {
12153
12153
-
description = "Fast numerical array expression evaluator for NumPy";
12154
12154
-
homepage = "https://github.com/pydata/numexpr";
12155
12155
-
license = licenses.mit;
12156
12156
-
};
12157
12157
-
};
12122
12122
+
numexpr = callPackage ../development/python-modules/numexpr { };
12158
12123
12159
12124
Nuitka = let
12160
12125
# scons is needed but using it requires Python 2.7