git.iko.soy/typeable/nixpkgs
on master help sign in
libgumath, pythonPackages.gumath: unstable-2018-11-27 -> unstable-2019-08-01

this is the most recent commit to upstream's master at time of writing includes fixes of python package for darwin

commiteb86bff30d874d7d65a7f7342dc81b70815a25df authorRobert Scott <code@humanleg.org.uk> dateSat 12 Sep 2020, 01:21 (6 years ago) parentdcd6847
2 files changed+23−5
pkgs/development/libraries/libgumath/default.nix+4−4 pkgs/development/python-modules/gumath/default.nix+19−1
pkgs/development/libraries/libgumath/default.nix+4−4
@@ -6,13 +6,13 @@
66
77stdenv.mkDerivation {
88 pname = "libgumath";
9− version = "unstable-2018-11-27";
9+ version = "unstable-2019-08-01";
1010
1111 src = fetchFromGitHub {
12− owner = "plures";
12+ owner = "xnd-project";
1313 repo = "gumath";
14− rev = "5a9d27883b40432246d6a93cd6133157267fd166";
15− sha256 = "0w2qzp7anxd1wzkvv5r2pdkkpgrnqzgrq47lrvpqc1i1wqzcwf0w";
14+ rev = "360ed454105ac5615a7cb7d216ad25bc4181b876";
15+ sha256 = "1wprkxpmjrk369fpw8rbq51r7jvqkcndqs209y7p560cnagmsxc6";
1616 };
1717
1818 buildInputs = [ libndtypes libxnd ];
pkgs/development/python-modules/gumath/default.nix+19−1
@@ -1,4 +1,6 @@
1−{ buildPythonPackage
1+{ stdenv
2+, buildPythonPackage
3+, python
24, numba
35, ndtypes
46, xnd
@@ -25,4 +27,20 @@ buildPythonPackage {
2527 --replace 'add_runtime_library_dirs = ["$ORIGIN"]' \
2628 'add_runtime_library_dirs = ["${libndtypes}/lib", "${libxnd}/lib", "${libgumath}/lib"]'
2729 '';
30+
31+ postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
32+ install_name_tool -add_rpath ${libgumath}/lib $out/${python.sitePackages}/gumath/_gumath.*.so
33+ '';
34+
35+ checkPhase = ''
36+ pushd python
37+ mv gumath _gumath
38+ # minor precision issues
39+ substituteInPlace test_gumath.py --replace 'test_sin' 'dont_test_sin'
40+ python test_gumath.py
41+ python test_xndarray.py
42+ popd
43+ '';
44+
2845}
46+