summary refs log tree commit diff
path: root/pkgs/development/python-modules/pythran/default.nix
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2021-03-13 11:33:31 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2021-03-13 11:33:31 +0100
commit782afeb11c75caeea52b8ac780ce8f17541f8361 (patch)
tree1cb605b99e5a6580e4593fef4b84897e41ed7670 /pkgs/development/python-modules/pythran/default.nix
parent6e452303a78bf5969d053e1c7f7f1ce6848155e2 (diff)
downloadnixpkgs-782afeb11c75caeea52b8ac780ce8f17541f8361.tar
nixpkgs-782afeb11c75caeea52b8ac780ce8f17541f8361.tar.gz
nixpkgs-782afeb11c75caeea52b8ac780ce8f17541f8361.tar.bz2
nixpkgs-782afeb11c75caeea52b8ac780ce8f17541f8361.tar.lz
nixpkgs-782afeb11c75caeea52b8ac780ce8f17541f8361.tar.xz
nixpkgs-782afeb11c75caeea52b8ac780ce8f17541f8361.tar.zst
nixpkgs-782afeb11c75caeea52b8ac780ce8f17541f8361.zip
python3Packages.pythran: init at 0.9.8post3
Diffstat (limited to 'pkgs/development/python-modules/pythran/default.nix')
-rw-r--r--pkgs/development/python-modules/pythran/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pythran/default.nix b/pkgs/development/python-modules/pythran/default.nix
new file mode 100644
index 00000000000..864234a37e2
--- /dev/null
+++ b/pkgs/development/python-modules/pythran/default.nix
@@ -0,0 +1,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;
+  };
+
+}