1{ stdenv, buildPythonPackage, fetchFromGitHub
2, cmake, sip, protobuf, pythonOlder }:
3
4buildPythonPackage rec {
5 pname = "libarcus";
6 version = "3.4.1";
7 format = "other";
8
9 src = fetchFromGitHub {
10 owner = "Ultimaker";
11 repo = "libArcus";
12 rev = version;
13 sha256 = "0mln8myvfl7rq2p4g1vadvlykckd8490jijag4xa5hhj3w3p19bk";
14 };
15
16 disabled = pythonOlder "3.4.0";
17
18 propagatedBuildInputs = [ sip protobuf ];
19 nativeBuildInputs = [ cmake ];
20
21 postPatch = ''
22 # To workaround buggy SIP detection which overrides PYTHONPATH
23 sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.cmake
24 '';
25
26 meta = with stdenv.lib; {
27 description = "Communication library between internal components for Ultimaker software";
28 homepage = https://github.com/Ultimaker/libArcus;
29 license = licenses.agpl3;
30 platforms = platforms.linux;
31 maintainers = with maintainers; [ abbradar ];
32 };
33}