2019-06-01 11:18:58 +02:00
|
|
|
{ stdenv, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip }:
|
2018-12-27 03:15:04 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libsavitar";
|
2020-03-09 23:45:37 +01:00
|
|
|
version = "4.5.0";
|
2018-12-27 03:15:04 +01:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "libSavitar";
|
|
|
|
rev = version;
|
2020-03-09 23:45:37 +01:00
|
|
|
sha256 = "1l3l8cgaxzqdk93880p2ijrabshdj5sq05cwj1i6jpmhlqc5b9rx";
|
2018-12-27 03:15:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-08-08 08:59:42 +02:00
|
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
2018-12-27 03:15:04 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ sip ];
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "C++ implementation of 3mf loading with SIP python bindings";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Ultimaker/libSavitar";
|
2018-12-27 03:15:04 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = platforms.unix;
|
2019-08-08 09:09:25 +02:00
|
|
|
maintainers = with maintainers; [ abbradar orivej gebner ];
|
2018-12-27 03:15:04 +01:00
|
|
|
};
|
|
|
|
}
|