2021-05-03 12:43:20 +01:00
|
|
|
{ lib, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip_4 }:
|
2018-12-27 02:15:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libsavitar";
|
2021-07-04 09:06:42 +01:00
|
|
|
version = "4.10.0";
|
2018-12-27 02:15:04 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "libSavitar";
|
|
|
|
rev = version;
|
2021-07-04 09:06:42 +01:00
|
|
|
sha256 = "1zyzsrdm5aazv12h7ga35amfryrbxdsmx3abvh27hixyh9f92fdp";
|
2018-12-27 02:15:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2019-08-08 07:59:42 +01:00
|
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
2018-12-27 02:15:04 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-05-03 12:43:20 +01:00
|
|
|
propagatedBuildInputs = [ sip_4 ];
|
2018-12-27 02:15:04 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-12-27 02:15:04 +00: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";
|
2018-12-27 02:15:04 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2019-08-08 08:09:25 +01:00
|
|
|
maintainers = with maintainers; [ abbradar orivej gebner ];
|
2018-12-27 02:15:04 +00:00
|
|
|
};
|
|
|
|
}
|