pythonPackages.gumath: init at unstable-2018-11-27

This commit is contained in:
Chris Ostrouchov 2018-11-27 17:42:52 -05:00
parent d9a5de3cce
commit 1223c8fd9d
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, numba
, ndtypes
, xnd
, libndtypes
, libxnd
, libgumath
, isPy27
}:
buildPythonPackage {
pname = "gumath";
disabled = isPy27;
inherit (libgumath) src version meta;
checkInputs = [ numba ];
propagatedBuildInputs = [ ndtypes xnd ];
postPatch = ''
substituteInPlace setup.py \
--replace 'add_include_dirs = [".", "libgumath", "ndtypes/python/ndtypes", "xnd/python/xnd"] + INCLUDES' \
'add_include_dirs = [".", "${libndtypes}/include", "${libxnd}/include", "${libgumath}/include"]' \
--replace 'add_library_dirs = ["libgumath", "ndtypes/libndtypes", "xnd/libxnd"] + LIBS' \
'add_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib", "${libgumath}/lib"]' \
--replace 'add_runtime_library_dirs = ["$ORIGIN"]' \
'add_runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib", "${libgumath}/lib"]'
'';
}

View file

@ -418,6 +418,8 @@ in {
guestfs = callPackage ../development/python-modules/guestfs { };
gumath = callPackage ../development/python-modules/gumath { };
h5py = callPackage ../development/python-modules/h5py {
hdf5 = pkgs.hdf5;
};