about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorJos van Bakel <jos@codeaddict.org>2019-11-02 14:12:15 +0100
committerJon <jonringer@users.noreply.github.com>2019-11-04 02:42:09 -0800
commit018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9 (patch)
tree34a127f391b8b58ec42cc1ff9c83b68f386dba5e /pkgs/development/python-modules
parent2d5aa988743c417c5c548854001fc2889e29e5d3 (diff)
downloadnixlib-018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9.tar
nixlib-018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9.tar.gz
nixlib-018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9.tar.bz2
nixlib-018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9.tar.lz
nixlib-018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9.tar.xz
nixlib-018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9.tar.zst
nixlib-018f66f6d8d21eeebbd4ba0bd462982dbde9dcb9.zip
pythonPackages.moderngl-window: init at 1.2.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/moderngl_window/default.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/moderngl_window/default.nix b/pkgs/development/python-modules/moderngl_window/default.nix
new file mode 100644
index 000000000000..a3c93978ff6a
--- /dev/null
+++ b/pkgs/development/python-modules/moderngl_window/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, isPy3k
+, numpy
+, moderngl
+, pyglet
+, pillow
+, pyrr
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "moderngl_window";
+  version = "1.2.0";
+
+  src = fetchFromGitHub {
+    owner = "moderngl";
+    repo = pname;
+    rev = version;
+    sha256 = "054w77lyc2nc0dyx76zsrbq2b3xbywdijhb62b2qqm99ldr1k1x5";
+  };
+
+  propagatedBuildInputs = [ numpy moderngl pyglet pillow pyrr ];
+
+  disabled = !isPy3k;
+
+  # Tests need a display to run.
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = "https://github.com/moderngl/moderngl_window";
+    description = "Cross platform helper library for ModernGL making window creation and resource loading simple";
+    license = licenses.mit;
+    platforms = platforms.linux; # should be mesaPlatforms, darwin build breaks.
+    maintainers = with maintainers; [ c0deaddict ];
+  };
+}