mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
34 lines
913 B
Nix
34 lines
913 B
Nix
{ stdenv, buildPythonPackage, python, fetchFromGitHub
|
|
, cmake, sip, protobuf, pythonOlder }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "libarcus";
|
|
version = "4.2.0";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Ultimaker";
|
|
repo = "libArcus";
|
|
rev = version;
|
|
sha256 = "0pk0g80ay9aghzmb8gfpqh0chl9rk47jh0ziicpianhklxx2jb44";
|
|
};
|
|
|
|
disabled = pythonOlder "3.4.0";
|
|
|
|
propagatedBuildInputs = [ sip ];
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ protobuf ];
|
|
|
|
postPatch = ''
|
|
sed -i 's#''${Python3_SITEARCH}#${placeholder "out"}/${python.sitePackages}#' cmake/SIPMacros.cmake
|
|
'';
|
|
|
|
meta = with stdenv.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 ];
|
|
};
|
|
}
|