08a26e4579
sip 4 is the old and unmaintained version
34 lines
916 B
Nix
34 lines
916 B
Nix
{ lib, buildPythonPackage, python, fetchFromGitHub
|
|
, cmake, sip_4, protobuf, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libarcus";
|
|
version = "4.9.0";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "libArcus";
|
|
rev = version;
|
|
sha256 = "0wq72nf680bwxijjajb4piw563rnvflshmw96kqln4lsny7ydjj2";
|
|
};
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
propagatedBuildInputs = [ sip_4 ];
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ protobuf ];
|
|
|
|
postPatch = ''
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|