depot/third_party/nixpkgs/pkgs/development/python-modules/gurobipy/linux.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

29 lines
666 B
Nix

{ lib, buildPythonPackage, python, gurobi }:
buildPythonPackage {
pname = "gurobipy";
version = "9.1.2";
src = gurobi.src;
setSourceRoot = "sourceRoot=$(echo gurobi*/*64)";
patches = [ ./no-clever-setup.patch ];
postInstall = ''
mv lib/libgurobi*.so* $out/lib
'';
postFixup = ''
patchelf --set-rpath $out/lib \
$out/lib/${python.libPrefix}/site-packages/gurobipy/gurobipy.so
'';
meta = with lib; {
description = "The Gurobi Python interface";
homepage = "https://www.gurobi.com";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree;
platforms = [ "x86_64-linux" ];
};
}