3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/libsavitar/default.nix

33 lines
880 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, python, pythonOlder, fetchFromGitHub, cmake, sip }:
buildPythonPackage rec {
pname = "libsavitar";
2020-03-09 22:45:37 +00:00
version = "4.5.0";
format = "other";
src = fetchFromGitHub {
owner = "Ultimaker";
repo = "libSavitar";
rev = version;
2020-03-09 22:45:37 +00:00
sha256 = "1l3l8cgaxzqdk93880p2ijrabshdj5sq05cwj1i6jpmhlqc5b9rx";
};
postPatch = ''
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
'';
nativeBuildInputs = [ cmake ];
propagatedBuildInputs = [ sip ];
disabled = pythonOlder "3.4.0";
meta = with stdenv.lib; {
description = "C++ implementation of 3mf loading with SIP python bindings";
homepage = "https://github.com/Ultimaker/libSavitar";
license = licenses.lgpl3Plus;
platforms = platforms.unix;
2019-08-08 08:09:25 +01:00
maintainers = with maintainers; [ abbradar orivej gebner ];
};
}