From da24df963e14eec93c695eb55ec25796ba2ef4df Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Mon, 10 Dec 2018 13:31:47 -0500 Subject: [PATCH] pythonPackages.pyjet: fix for python37 --- pkgs/development/python-modules/pyjet/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyjet/default.nix b/pkgs/development/python-modules/pyjet/default.nix index 69d20863a772..ca9492cb9485 100644 --- a/pkgs/development/python-modules/pyjet/default.nix +++ b/pkgs/development/python-modules/pyjet/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, nose, numpy }: +{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }: buildPythonPackage rec { pname = "pyjet"; @@ -9,6 +9,15 @@ buildPythonPackage rec { sha256 = "1glcwv9ni8i40smfw6m456xjadlkackim5nk33xmas1fa96lpagg"; }; + # fix for python37 + # https://github.com/scikit-hep/pyjet/issues/8 + nativeBuildInputs = [ cython ]; + preBuild = '' + for f in pyjet/src/*.{pyx,pxd}; do + cython --cplus "$f" + done + ''; + propagatedBuildInputs = [ numpy ]; checkInputs = [ nose ];