Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / libsavitar / default.nix
blob56ce67110b908cb662ff75c57465afe1f825a3ce
1 { lib, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip4 }:
3 buildPythonPackage rec {
4   pname = "libsavitar";
5   version = "4.12.0";
6   format = "other";
8   src = fetchFromGitHub {
9     owner = "Ultimaker";
10     repo = "libSavitar";
11     rev = version;
12     hash = "sha256-MAA1WtGED6lvU6N4BE6wwY1aYaFrCq/gkmQFz3VWqNA=";
13   };
15   postPatch = ''
16     sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
17   '';
19   nativeBuildInputs = [ cmake ];
21   propagatedBuildInputs = [ sip4 ];
23   disabled = pythonOlder "3.4.0";
25   meta = with lib; {
26     description = "C++ implementation of 3mf loading with SIP python bindings";
27     homepage = "https://github.com/Ultimaker/libSavitar";
28     license = licenses.lgpl3Plus;
29     platforms = platforms.unix;
30     maintainers = with maintainers; [ abbradar orivej gebner ];
31   };