forked from mirrors/nixpkgs
33 lines
880 B
Nix
33 lines
880 B
Nix
{ stdenv, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libsavitar";
|
|
version = "4.6.1";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "libSavitar";
|
|
rev = version;
|
|
sha256 = "0nk8zl5b0b36wrrkj271ck4phzxsigkjsazndscjslc9nkldmnpq";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|