2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libsavitar";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "4.7.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "libSavitar";
|
|
|
|
rev = version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "0mzr3ynfap51bcn6kshyi2h6iny2gpavn6g3b1xcsgzzlxqgfixf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.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.unix;
|
|
|
|
maintainers = with maintainers; [ abbradar orivej gebner ];
|
|
|
|
};
|
|
|
|
}
|