depot/third_party/nixpkgs/pkgs/development/python-modules/horizon-eda/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
716 B
Nix

{
lib,
stdenv,
buildPythonPackage,
callPackage,
horizon-eda,
mesa,
pycairo,
python,
pythonOlder,
}:
let
base = horizon-eda.passthru.base;
in
buildPythonPackage {
inherit (base)
pname
version
src
meta
CASROOT
;
pyproject = false;
disabled = pythonOlder "3.9";
buildInputs = base.buildInputs ++ [
mesa
mesa.osmesa
python
];
propagatedBuildInputs = [ pycairo ];
nativeBuildInputs = base.nativeBuildInputs;
buildFlags = [ "pymodule" ];
installPhase = ''
runHook preInstall
mkdir -p $out/${python.sitePackages}
cp build/horizon.so $out/${python.sitePackages}
runHook postInstall
'';
enableParallelBuilding = true;
}