at master 987 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 python, 6 pythonRecompileBytecodeHook, 7 swig, 8 cmake, 9 coin3d, 10 soqt, 11 libGLU, 12}: 13 14buildPythonPackage rec { 15 pname = "pivy"; 16 version = "0.6.10"; 17 format = "other"; 18 19 src = fetchFromGitHub { 20 owner = "coin3d"; 21 repo = "pivy"; 22 tag = version; 23 hash = "sha256-DRA4NTAHg2iB/D1CU9pJEpsZwX9GW3X5gpxbIwP54Ko="; 24 }; 25 26 nativeBuildInputs = [ 27 swig 28 cmake 29 pythonRecompileBytecodeHook 30 ]; 31 32 buildInputs = [ 33 coin3d 34 soqt 35 libGLU # dummy buildInput that provides missing header <GL/glu.h> 36 ]; 37 38 cmakeFlags = [ 39 (lib.cmakeBool "PIVY_USE_QT6" true) 40 (lib.cmakeFeature "PIVY_Python_SITEARCH" "${placeholder "out"}/${python.sitePackages}") 41 ]; 42 43 dontWrapQtApps = true; 44 45 pythonImportsCheck = [ "pivy" ]; 46 47 meta = { 48 homepage = "https://github.com/coin3d/pivy/"; 49 description = "Python binding for Coin"; 50 license = lib.licenses.bsd0; 51 maintainers = with lib.maintainers; [ ]; 52 }; 53}