2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, python, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, cmake, sip, protobuf, pythonOlder }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "libarcus";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "4.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Ultimaker";
|
|
|
|
repo = "libArcus";
|
|
|
|
rev = version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "0wq72nf680bwxijjajb4piw563rnvflshmw96kqln4lsny7ydjj2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ sip ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ protobuf ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Communication library between internal components for Ultimaker software";
|
|
|
|
homepage = "https://github.com/Ultimaker/libArcus";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar gebner ];
|
|
|
|
};
|
|
|
|
}
|