biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / libsavitar / default.nix
blob5bb60e58ac866d2df9168a31291c2d96aa2e5052
2   lib,
3   buildPythonPackage,
4   python,
5   pythonOlder,
6   fetchFromGitHub,
7   cmake,
8   sip4,
9 }:
11 buildPythonPackage rec {
12   pname = "libsavitar";
13   version = "4.12.0";
14   format = "other";
16   src = fetchFromGitHub {
17     owner = "Ultimaker";
18     repo = "libSavitar";
19     rev = version;
20     hash = "sha256-MAA1WtGED6lvU6N4BE6wwY1aYaFrCq/gkmQFz3VWqNA=";
21   };
23   postPatch = ''
24     sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
25   '';
27   nativeBuildInputs = [ cmake ];
29   propagatedBuildInputs = [ sip4 ];
31   disabled = pythonOlder "3.4.0";
33   meta = with lib; {
34     description = "C++ implementation of 3mf loading with SIP python bindings";
35     homepage = "https://github.com/Ultimaker/libSavitar";
36     license = licenses.lgpl3Plus;
37     platforms = platforms.unix;
38     maintainers = with maintainers; [
39       abbradar
40       orivej
41       gebner
42     ];
43   };