mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-20 04:33:19 +02:00
f3282c8d1e
* treewide: remove unused variables * making ofborg happy
29 lines
680 B
Nix
29 lines
680 B
Nix
{ buildPythonPackage
|
|
, numpy
|
|
, libndtypes
|
|
, isPy27
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "ndtypes";
|
|
disabled = isPy27;
|
|
inherit (libndtypes) version src meta;
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'include_dirs = ["libndtypes"]' \
|
|
'include_dirs = ["${libndtypes}/include"]' \
|
|
--replace 'library_dirs = ["libndtypes"]' \
|
|
'library_dirs = ["${libndtypes}/lib"]' \
|
|
--replace 'runtime_library_dirs = ["$ORIGIN"]' \
|
|
'runtime_library_dirs = ["${libndtypes}/lib"]'
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir $out/include
|
|
cp python/ndtypes/*.h $out/include
|
|
'';
|
|
}
|