9405df4a82
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
32 lines
870 B
Nix
32 lines
870 B
Nix
{ lib, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libsavitar";
|
|
version = "4.9.0";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "libSavitar";
|
|
rev = version;
|
|
sha256 = "0434cb19v9phc9xicbmgpbig18ivplcpqhnsjgca4p8n8c715k9h";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
propagatedBuildInputs = [ sip ];
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|