mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
34 lines
883 B
Nix
34 lines
883 B
Nix
|
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, cmake, sip }:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "libsavitar";
|
||
|
version = "3.6.0";
|
||
|
format = "other";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "Ultimaker";
|
||
|
repo = "libSavitar";
|
||
|
rev = version;
|
||
|
sha256 = "1bz8ga0n9aw65hqzajbr93dcv5g555iaihbhs1jq2k47cx66klzv";
|
||
|
};
|
||
|
|
||
|
postPatch = ''
|
||
|
# To workaround buggy SIP detection which overrides PYTHONPATH
|
||
|
sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.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.linux;
|
||
|
maintainers = with maintainers; [ abbradar orivej ];
|
||
|
};
|
||
|
}
|