Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 77 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, stdenv, buildPythonPackage, fetchPypi, pyqt5, pyqt-builder, python, pythonOlder, qt3d, setuptools, sip}:
buildPythonPackage rec { pname = "pyqt3d"; version = "5.15.6"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi { pname = "PyQt3D"; inherit version; hash = "sha256-fWxtVc2PwiGzE8mVwPhymjdxFJJvA3f46QEdRevziBw="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace "[tool.sip.project]" "[tool.sip.project]''\nsip-include-dirs = [\"${pyqt5}/${python.sitePackages}/PyQt5/bindings\"]" '';
outputs = [ "out" "dev" ];
enableParallelBuilding = true; # HACK: paralellize compilation of make calls within pyqt's setup.py # pkgs/stdenv/generic/setup.sh doesn't set this for us because # make gets called by python code and not its build phase # format=pyproject means the pip-build-hook hook gets used to build this project # pkgs/development/interpreters/python/hooks/pip-build-hook.sh # does not use the enableParallelBuilding flag preBuild = '' export MAKEFLAGS+="''${enableParallelBuilding:+-j$NIX_BUILD_CORES}" '';
dontWrapQtApps = true;
nativeBuildInputs = [ sip qt3d setuptools pyqt-builder ];
buildInputs = [ qt3d ];
propagatedBuildInputs = [ pyqt5 ];
dontConfigure = true;
# has no tests doCheck = false;
pythonImportsCheck = [ "PyQt5.Qt3DCore" ];
meta = with lib; { description = "Python bindings for the Qt 3D framework"; homepage = "https://riverbankcomputing.com/"; license = licenses.gpl3Only; maintainers = with maintainers; [ panicgh ]; };}