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
This commit is contained in:
parent
09bc8c8d85
commit
044533c99b
|
@ -4,13 +4,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libndtypes";
|
pname = "libndtypes";
|
||||||
version = "unstable-2018-11-27";
|
version = "unstable-2019-08-01";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "plures";
|
owner = "xnd-project";
|
||||||
repo = "ndtypes";
|
repo = "ndtypes";
|
||||||
rev = "4d810d0c4d54c81a7136f313f0ae6623853d574a";
|
rev = "3ce6607c96d8fe67b72cc0c97bf595620cdd274e";
|
||||||
sha256 = "1kk1sa7f17ffh49jc1qlizlsj536fr3s4flb6x4rjyi81rp7psb9";
|
sha256 = "18303q0jfar1lmi4krp94plczb455zcgw772f9lb8xa5p0bkhx01";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Override linker with cc (symlink to either gcc or clang)
|
# Override linker with cc (symlink to either gcc or clang)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ buildPythonPackage
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, python
|
||||||
, numpy
|
, numpy
|
||||||
, libndtypes
|
, libndtypes
|
||||||
, isPy27
|
, isPy27
|
||||||
|
@ -24,5 +26,14 @@ buildPythonPackage {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir $out/include
|
mkdir $out/include
|
||||||
cp python/ndtypes/*.h $out/include
|
cp python/ndtypes/*.h $out/include
|
||||||
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
|
install_name_tool -add_rpath ${libndtypes}/lib $out/${python.sitePackages}/ndtypes/_ndtypes.*.so
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
pushd python
|
||||||
|
mv ndtypes _ndtypes
|
||||||
|
python test_ndtypes.py
|
||||||
|
popd
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue