13 inherit (libndtypes) version src meta;
15 propagatedBuildInputs = [ numpy ];
18 substituteInPlace setup.py \
19 --replace 'include_dirs = ["libndtypes"]' \
20 'include_dirs = ["${libndtypes}/include"]' \
21 --replace 'library_dirs = ["libndtypes"]' \
22 'library_dirs = ["${libndtypes}/lib"]' \
23 --replace 'runtime_library_dirs = ["$ORIGIN"]' \
24 'runtime_library_dirs = ["${libndtypes}/lib"]'
29 cp python/ndtypes/*.h $out/include
30 '' + lib.optionalString stdenv.isDarwin ''
31 install_name_tool -add_rpath ${libndtypes}/lib $out/${python.sitePackages}/ndtypes/_ndtypes.*.so
37 python test_ndtypes.py