depot/third_party/nixpkgs/pkgs/development/python-modules/horizon-eda/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

48 lines
684 B
Nix

{
buildPythonPackage,
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;
}