diff options
author | Orivej Desh <orivej@gmx.fr> | 2018-12-27 02:15:04 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2018-12-27 02:18:31 +0000 |
commit | cbdaa29c3e169ec69ebd267720781724f1c5e276 (patch) | |
tree | ec6bc1db74b8135063b529cc34f09398346ad0a3 /pkgs/development/python-modules/libsavitar | |
parent | 9b3204d41b212587a6370ce25fad1b2f4d2389f7 (diff) |
python3Packages.libsavitar: init at 3.6.0
Diffstat (limited to 'pkgs/development/python-modules/libsavitar')
-rw-r--r-- | pkgs/development/python-modules/libsavitar/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/libsavitar/default.nix b/pkgs/development/python-modules/libsavitar/default.nix new file mode 100644 index 0000000000000..9f78b9994509c --- /dev/null +++ b/pkgs/development/python-modules/libsavitar/default.nix @@ -0,0 +1,33 @@ +{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, cmake, sip }: + +buildPythonPackage rec { + pname = "libsavitar"; + version = "3.6.0"; + format = "other"; + + src = fetchFromGitHub { + owner = "Ultimaker"; + repo = "libSavitar"; + rev = version; + sha256 = "1bz8ga0n9aw65hqzajbr93dcv5g555iaihbhs1jq2k47cx66klzv"; + }; + + postPatch = '' + # To workaround buggy SIP detection which overrides PYTHONPATH + sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.cmake + ''; + + nativeBuildInputs = [ cmake ]; + + propagatedBuildInputs = [ sip ]; + + disabled = pythonOlder "3.4.0"; + + meta = with stdenv.lib; { + description = "C++ implementation of 3mf loading with SIP python bindings"; + homepage = https://github.com/Ultimaker/libSavitar; + license = licenses.lgpl3Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ abbradar orivej ]; + }; +} |