nixpkgs/pkgs/development/python-modules/libsavitar/default.nix
2021-01-25 18:31:47 +01:00

33 lines
870 B
Nix

{ lib, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip }:
buildPythonPackage rec {
pname = "libsavitar";
version = "4.8.0";
format = "other";
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "libSavitar";
rev = version;
sha256 = "1mxkvnhn8k1a86jlnjnlpf0b8dvrcg3n7pslf60s13cgb7w3sfzh";
};
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 ];
};
}