diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/libarcus')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/libarcus/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/libarcus/default.nix b/nixpkgs/pkgs/development/python-modules/libarcus/default.nix new file mode 100644 index 000000000000..7b0b09dcb14c --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/libarcus/default.nix @@ -0,0 +1,33 @@ +{ lib, buildPythonPackage, python, fetchFromGitHub +, cmake, sip_4, protobuf, pythonOlder }: + +buildPythonPackage rec { + pname = "libarcus"; + version = "4.10.0"; + format = "other"; + + src = fetchFromGitHub { + owner = "Ultimaker"; + repo = "libArcus"; + rev = version; + sha256 = "1ahka8s8fjwymyr7pca7i7h51ikfr35zy4nkzfcjn946x7p0dprf"; + }; + + 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 ]; + }; +} |