nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 50 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 python, 5 pythonOlder, 6 fetchFromGitHub, 7 cmake, 8 sip4, 9 distutils, 10}: 11 12buildPythonPackage rec { 13 pname = "libsavitar"; 14 version = "4.12.0"; 15 pyproject = false; 16 17 src = fetchFromGitHub { 18 owner = "Ultimaker"; 19 repo = "libSavitar"; 20 rev = version; 21 hash = "sha256-MAA1WtGED6lvU6N4BE6wwY1aYaFrCq/gkmQFz3VWqNA="; 22 }; 23 24 postPatch = '' 25 sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake 26 27 substituteInPlace pugixml/CMakeLists.txt \ 28 --replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)" 29 ''; 30 31 nativeBuildInputs = [ 32 cmake 33 sip4 34 ]; 35 36 propagatedBuildInputs = [ 37 sip4 38 distutils 39 ]; 40 41 strictDeps = true; 42 43 meta = { 44 description = "C++ implementation of 3mf loading with SIP python bindings"; 45 homepage = "https://github.com/Ultimaker/libSavitar"; 46 license = lib.licenses.lgpl3Plus; 47 platforms = lib.platforms.unix; 48 maintainers = [ ]; 49 }; 50}