1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestrunner
, ply
, networkx
, decorator
, gast
, six
, numpy
, beniget
, pytestCheckHook
, scipy
, isPy3k
}:
buildPythonPackage rec {
pname = "pythran";
version = "0.9.8post3";
src = fetchFromGitHub {
owner = "serge-sans-paille";
repo = "pythran";
rev = version;
sha256 = "sha256-GCWjJlf7zpFzELR6wTF8FoJzJ3F/WdT1hHjY5A5h/+4=";
};
nativeBuildInputs = [
pytestrunner
];
propagatedBuildInputs = [
ply
networkx
decorator
gast
six
numpy
beniget
];
pythonImportsCheck = [
"pythran"
"pythran.backend"
"pythran.middlend"
"pythran.passmanager"
"pythran.toolchain"
"pythran.spec"
];
checkInputs = [
pytestCheckHook
numpy
scipy
];
# Test suite is huge.
# Also, in the future scipy will rely on it resulting in a circular test dependency
doCheck = false;
disabled = !isPy3k;
meta = {
description = "Ahead of Time compiler for numeric kernels";
homepage = https://github.com/serge-sans-paille/pythran;
license = lib.licenses.bsd3;
};
}
|