diff options
author | Nikolay Amiantov <ab@fmap.me> | 2017-02-26 00:59:08 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2017-03-01 02:23:18 +0300 |
commit | 868794010fb1d8295d6b83561f3c6d489d5ed818 (patch) | |
tree | 07cd33dee7d85654e14ca557d445a2c16d1ec657 /pkgs/development/python-modules/uranium | |
parent | e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01 (diff) | |
download | nixlib-868794010fb1d8295d6b83561f3c6d489d5ed818.tar nixlib-868794010fb1d8295d6b83561f3c6d489d5ed818.tar.gz nixlib-868794010fb1d8295d6b83561f3c6d489d5ed818.tar.bz2 nixlib-868794010fb1d8295d6b83561f3c6d489d5ed818.tar.lz nixlib-868794010fb1d8295d6b83561f3c6d489d5ed818.tar.xz nixlib-868794010fb1d8295d6b83561f3c6d489d5ed818.tar.zst nixlib-868794010fb1d8295d6b83561f3c6d489d5ed818.zip |
python.pkgs.uranium: init at 2.4.0
Diffstat (limited to 'pkgs/development/python-modules/uranium')
-rw-r--r-- | pkgs/development/python-modules/uranium/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/uranium/default.nix b/pkgs/development/python-modules/uranium/default.nix new file mode 100644 index 000000000000..bce88635d3c5 --- /dev/null +++ b/pkgs/development/python-modules/uranium/default.nix @@ -0,0 +1,37 @@ +{ stdenv, lib, fetchFromGitHub, python, cmake, pyqt5, numpy, scipy, libarcus }: + +if lib.versionOlder python.version "3.5.0" +then throw "Uranium not supported for interpreter ${python.executable}" +else + +stdenv.mkDerivation rec { + name = "uranium-${version}"; + version = "2.4.0"; + + src = fetchFromGitHub { + owner = "Ultimaker"; + repo = "Uranium"; + rev = version; + sha256 = "1jpl0ryk8xdppillk5wzr2415n50cpa09shn1xqj6y96fg22l2il"; + }; + + buildInputs = [ python ]; + propagatedBuildInputs = [ pyqt5 numpy scipy libarcus ]; + nativeBuildInputs = [ cmake ]; + + postPatch = '' + sed -i 's,/python''${PYTHON_VERSION_MAJOR}/dist-packages,/python''${PYTHON_VERSION_MAJOR}.''${PYTHON_VERSION_MINOR}/site-packages,g' CMakeLists.txt + sed -i \ + -e "s,Resources.addSearchPath(os.path.join(os.path.abspath(os.path.dirname(__file__)).*,Resources.addSearchPath(\"$out/share/uranium/resources\")," \ + -e "s,self._plugin_registry.addPluginLocation(os.path.join(os.path.abspath(os.path.dirname(__file__)).*,self._plugin_registry.addPluginLocation(\"$out/lib/uranium/plugins\")," \ + UM/Application.py + ''; + + meta = with stdenv.lib; { + description = "A Python framework for building Desktop applications"; + homepage = "https://github.com/Ultimaker/Uranium"; + license = licenses.agpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ abbradar ]; + }; +} |