diff options
Diffstat (limited to 'pkgs/development/python-modules/pivy/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pivy/default.nix | 50 |
1 files changed, 37 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/pivy/default.nix b/pkgs/development/python-modules/pivy/default.nix index ff5a1fdeafa7..471aa322d1bf 100644 --- a/pkgs/development/python-modules/pivy/default.nix +++ b/pkgs/development/python-modules/pivy/default.nix @@ -1,28 +1,51 @@ -{ lib, buildPythonPackage, fetchFromGitHub, pkgs, qtbase, qmake, soqt }: +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pkgs, + qtbase, + qmake, + soqt, +}: buildPythonPackage rec { pname = "pivy"; - version = "0.6.8"; - format = "setuptools"; + version = "0.6.9"; + pyproject = true; src = fetchFromGitHub { owner = "coin3d"; repo = "pivy"; rev = "refs/tags/${version}"; - hash = "sha256-y72nzZAelyRDR2JS73/0jo2x/XiDZpsERPZV3gzIhAI="; + hash = "sha256-wWM8eKTehWCIbRxxWkZ4YrYyeIJuzQaBOUMrW9a5MVo="; }; + build-system = [ setuptools ]; + dontUseCmakeConfigure = true; nativeBuildInputs = with pkgs; [ - swig qmake cmake + swig + qmake + cmake ]; - buildInputs = with pkgs; with xorg; [ - coin3d soqt qtbase - libGLU libGL - libXi libXext libSM libICE libX11 - ]; + buildInputs = + with pkgs; + with xorg; + [ + coin3d + soqt + qtbase + libGLU + libGL + libXi + libXext + libSM + libICE + libX11 + ]; env.NIX_CFLAGS_COMPILE = toString [ "-I${qtbase.dev}/include/QtCore" @@ -32,7 +55,7 @@ buildPythonPackage rec { ]; dontUseQmakeConfigure = true; - dontWrapQtApps =true; + dontWrapQtApps = true; doCheck = false; postPatch = '' @@ -40,11 +63,12 @@ buildPythonPackage rec { \$'{Coin_INCLUDE_DIR}'\;\$'{SoQt_INCLUDE_DIRS}' ''; + pythonImportsCheck = [ "pivy" ]; + meta = with lib; { homepage = "https://github.com/coin3d/pivy/"; - description = "A Python binding for Coin"; + description = "Python binding for Coin"; license = licenses.bsd0; maintainers = with maintainers; [ gebner ]; }; - } |