libndtypes, pythonPackages.ndtypes: 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
commit044533c99be5fd12c50354056422e0685f37228f
authorRobert Scott <code@humanleg.org.uk>
dateSat 12 Sep 2020, 01:19 (6 years ago)
parent09bc8c8
pkgs/development/libraries/libndtypes/default.nix+4−4
@@ -4,13 +4,13 @@
44
55stdenv.mkDerivation {
66 pname = "libndtypes";
7− version = "unstable-2018-11-27";
7+ version = "unstable-2019-08-01";
88
99 src = fetchFromGitHub {
10− owner = "plures";
10+ owner = "xnd-project";
1111 repo = "ndtypes";
12− rev = "4d810d0c4d54c81a7136f313f0ae6623853d574a";
13− sha256 = "1kk1sa7f17ffh49jc1qlizlsj536fr3s4flb6x4rjyi81rp7psb9";
12+ rev = "3ce6607c96d8fe67b72cc0c97bf595620cdd274e";
13+ sha256 = "18303q0jfar1lmi4krp94plczb455zcgw772f9lb8xa5p0bkhx01";
1414 };
1515
1616 # Override linker with cc (symlink to either gcc or clang)
pkgs/development/python-modules/ndtypes/default.nix+12−1
@@ -1,4 +1,6 @@
1−{ buildPythonPackage
1+{ stdenv
2+, buildPythonPackage
3+, python
24, numpy
35, libndtypes
46, isPy27
@@ -24,5 +26,14 @@ buildPythonPackage {
2426 postInstall = ''
2527 mkdir $out/include
2628 cp python/ndtypes/*.h $out/include
29+ '' + stdenv.lib.optionalString stdenv.isDarwin ''
30+ install_name_tool -add_rpath ${libndtypes}/lib $out/${python.sitePackages}/ndtypes/_ndtypes.*.so
31+ '';
32+
33+ checkPhase = ''
34+ pushd python
35+ mv ndtypes _ndtypes
36+ python test_ndtypes.py
37+ popd
2738 '';
2839}