2018-12-27 02:15:04 +00:00
|
|
|
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, cmake, sip }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libsavitar";
|
2019-04-04 08:51:51 +01:00
|
|
|
version = "4.0.0";
|
2018-12-27 02:15:04 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "libSavitar";
|
|
|
|
rev = version;
|
2019-04-04 08:51:51 +01:00
|
|
|
sha256 = "1q70l37qafzfkpw8vlagmpd2w576b6jc1xmxp3wf3qfq45j8kya0";
|
2018-12-27 02:15:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2018-12-27 02:15:04 +00:00
|
|
|
maintainers = with maintainers; [ abbradar orivej ];
|
|
|
|
};
|
|
|
|
}
|