2021-05-03 12:43:20 +01:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchgit, cmake, sip_4 }:
|
2019-05-06 00:31:51 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
buildPythonPackage {
|
2019-05-06 00:31:51 +01:00
|
|
|
pname = "libsavitar-lulzbot";
|
|
|
|
name = "libsavitar-lulzbot";
|
2019-10-13 21:32:33 +01:00
|
|
|
version = "3.6.21";
|
2019-05-06 00:31:51 +01:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://code.alephobjects.com/source/savitar.git";
|
2019-10-13 21:32:33 +01:00
|
|
|
rev = "ee8ada42c55f54727ce4d275c294ba426d3d8234";
|
|
|
|
sha256 = "1wm5ii3cmni8dk3c65kw4wglpypkdsfpgd480d3hc1r5bqpq0d6j";
|
2019-05-06 00:31:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# To workaround buggy SIP detection which overrides PYTHONPATH
|
|
|
|
sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.cmake
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-05-03 12:43:20 +01:00
|
|
|
propagatedBuildInputs = [ sip_4 ];
|
2019-05-06 00:31:51 +01:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-06 00:31:51 +01:00
|
|
|
description = "C++ implementation of 3mf loading with SIP python bindings";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Ultimaker/libSavitar";
|
2019-05-06 00:31:51 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ chaduffy ];
|
|
|
|
};
|
|
|
|
}
|