From cae8e212249032a475aa09bfe5286645cfa9b76a Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Mon, 3 May 2021 16:40:28 +0200 Subject: [PATCH] who even knows --- .../opencv-python-headless/default.nix | 21 +++++++++++++++++++ pkgs/python-modules/python-mpv/default.nix | 21 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/python-modules/opencv-python-headless/default.nix create mode 100644 pkgs/python-modules/python-mpv/default.nix diff --git a/pkgs/python-modules/opencv-python-headless/default.nix b/pkgs/python-modules/opencv-python-headless/default.nix new file mode 100644 index 0000000..d24cdb0 --- /dev/null +++ b/pkgs/python-modules/opencv-python-headless/default.nix @@ -0,0 +1,21 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "opencv-python-headless"; + version = "4.5.1.48"; + + src = fetchPypi { + inherit pname version; + sha256 = "1idw1np8gq8460hzj2ly3481b7i2f1k12gpr6y3nsnkvbrsjas6i"; + }; + + + doCheck = true; + + meta = with lib; { + homepage = "https://github.com/opencv/opencv-python"; + description = "Unofficial pre-built CPU-only OpenCV packages for Python"; + license = licenses.mit; + }; + +} diff --git a/pkgs/python-modules/python-mpv/default.nix b/pkgs/python-modules/python-mpv/default.nix new file mode 100644 index 0000000..643c2a8 --- /dev/null +++ b/pkgs/python-modules/python-mpv/default.nix @@ -0,0 +1,21 @@ +{ lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "python-mpv"; + version = "0.5.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "08v8kv5jn741v1r4fi8m7haxxphw74452nc8f4n60hglxxhsxiqh"; + }; + + + doCheck = false; + + meta = with lib; { + homepage = "https://github.com/jaseg/python-mpv"; + description = "python-mpv is a ctypes-based python interface to the mpv media player. It gives you more or less full control of all features of the player, just as the lua interface does"; + license = licenses.agpl3Only; + }; + +}