1{ stdenv, buildPythonPackage, fetchFromGitHub, python, cmake 2, pyqt5, numpy, scipy, libarcus, doxygen, gettext, pythonOlder }: 3 4buildPythonPackage rec { 5 version = "3.4.1"; 6 pname = "uranium"; 7 format = "other"; 8 9 src = fetchFromGitHub { 10 owner = "Ultimaker"; 11 repo = "Uranium"; 12 rev = version; 13 sha256 = "1r6d65c9xfkn608k6wv3dprpks5h8g2v9mi4a67ifpzyw4y3f0rk"; 14 }; 15 16 disabled = pythonOlder "3.5.0"; 17 18 buildInputs = [ python gettext ]; 19 propagatedBuildInputs = [ pyqt5 numpy scipy libarcus ]; 20 nativeBuildInputs = [ cmake doxygen ]; 21 22 postPatch = '' 23 sed -i 's,/python''${PYTHON_VERSION_MAJOR}/dist-packages,/python''${PYTHON_VERSION_MAJOR}.''${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt 24 sed -i \ 25 -e "s,Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)).*,Resources.addSearchPath(\"$out/share/uranium/resources\")," \ 26 -e "s,self._plugin_registry.addPluginLocation(os.path.join(os.path.abspath(os.path.dirname(__file__)).*,self._plugin_registry.addPluginLocation(\"$out/lib/uranium/plugins\")," \ 27 UM/Application.py 28 ''; 29 30 meta = with stdenv.lib; { 31 description = "A Python framework for building Desktop applications"; 32 homepage = https://github.com/Ultimaker/Uranium; 33 license = licenses.agpl3; 34 platforms = platforms.linux; 35 maintainers = with maintainers; [ abbradar ]; 36 }; 37}