about summary refs log tree commit diff
path: root/pkgs/development/python-modules/libarcus
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2017-02-26 00:58:52 +0300
committerNikolay Amiantov <ab@fmap.me>2017-03-01 02:23:18 +0300
commite3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01 (patch)
tree81512434b720318d3c6b02b3758e732d370f00be /pkgs/development/python-modules/libarcus
parentb6cba9ae3ff808c8b005dbc8021178013557216c (diff)
downloadnixlib-e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01.tar
nixlib-e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01.tar.gz
nixlib-e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01.tar.bz2
nixlib-e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01.tar.lz
nixlib-e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01.tar.xz
nixlib-e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01.tar.zst
nixlib-e3a6a1fc0e0888afe47ed9f1038c3a4c4c64de01.zip
python.pkgs.libarcus: init at 2.4.0
Diffstat (limited to 'pkgs/development/python-modules/libarcus')
-rw-r--r--pkgs/development/python-modules/libarcus/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/libarcus/default.nix b/pkgs/development/python-modules/libarcus/default.nix
new file mode 100644
index 000000000000..cae6ac62e1e6
--- /dev/null
+++ b/pkgs/development/python-modules/libarcus/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, lib, fetchFromGitHub, python, cmake, sip, protobuf }:
+
+if lib.versionOlder python.version "3.4.0"
+then throw "libArcus not supported for interpreter ${python.executable}"
+else
+
+stdenv.mkDerivation rec {
+  name = "libarcus-${version}";
+  version = "2.4.0";
+  
+  src = fetchFromGitHub {
+    owner = "Ultimaker";
+    repo = "libArcus";
+    rev = version;
+    sha256 = "07lf5d42pnx0h9lgldplfdj142rbcsxx23njdblnq04di7a4937h";
+  };
+  
+  propagatedBuildInputs = [ sip protobuf ];
+  nativeBuildInputs = [ cmake ];
+
+  postPatch = ''
+    # To workaround buggy SIP detection which overrides PYTHONPATH
+    sed -i '/SET(ENV{PYTHONPATH}/d' cmake/FindSIP.cmake
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Communication library between internal components for Ultimaker software";
+    homepage = "https://github.com/Ultimaker/libArcus";
+    license = licenses.agpl3;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ abbradar ];
+  };
+}