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:
Robert Scott
2020-09-12 01:19:26 +01:00
committed by Jon
parent 09bc8c8d85
commit 044533c99b
2 changed files with 16 additions and 5 deletions

View File

@@ -1,4 +1,6 @@
{ buildPythonPackage
{ stdenv
, buildPythonPackage
, python
, numpy
, libndtypes
, isPy27
@@ -24,5 +26,14 @@ buildPythonPackage {
postInstall = ''
mkdir $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
'';
}