Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip_4 }: 2 3buildPythonPackage rec { 4 pname = "libsavitar"; 5 version = "4.12.0"; 6 format = "other"; 7 8 src = fetchFromGitHub { 9 owner = "Ultimaker"; 10 repo = "libSavitar"; 11 rev = version; 12 hash = "sha256-MAA1WtGED6lvU6N4BE6wwY1aYaFrCq/gkmQFz3VWqNA="; 13 }; 14 15 postPatch = '' 16 sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake 17 ''; 18 19 nativeBuildInputs = [ cmake ]; 20 21 propagatedBuildInputs = [ sip_4 ]; 22 23 disabled = pythonOlder "3.4.0"; 24 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 }; 32}