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