1{ stdenv, buildPythonPackage, python, fetchFromGitHub
2, cmake, sip, protobuf, pythonOlder }:
3
4buildPythonPackage rec {
5 pname = "libarcus";
6 version = "4.7.1";
7 format = "other";
8
9 src = fetchFromGitHub {
10 owner = "Ultimaker";
11 repo = "libArcus";
12 rev = version;
13 sha256 = "0wmrcvw7k34ib93shhmjzh6kpndgqr37kyr377sril5clmac0z1f";
14 };
15
16 disabled = pythonOlder "3.4.0";
17
18 propagatedBuildInputs = [ sip ];
19 nativeBuildInputs = [ cmake ];
20 buildInputs = [ protobuf ];
21
22 postPatch = ''
23 sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.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.lgpl3Plus;
30 platforms = platforms.linux;
31 maintainers = with maintainers; [ abbradar gebner ];
32 };
33}