about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pdunehd
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-06-17 20:11:58 +0200
committerRobert Schütz <dev@schuetz-co.de>2021-06-17 20:11:58 +0200
commit00c2250571a560a334e3dc5b19078f09bc1d426b (patch)
tree7077372bbb9c84c648935d25751c10a5c04549f9 /pkgs/development/python-modules/pdunehd
parentc147520d3fcc474c48a77cc75275bd59d3ef5600 (diff)
python3Packages.pdunehd: init at 1.3.2
Diffstat (limited to 'pkgs/development/python-modules/pdunehd')
-rw-r--r--pkgs/development/python-modules/pdunehd/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pdunehd/default.nix b/pkgs/development/python-modules/pdunehd/default.nix
new file mode 100644
index 0000000000000..63eca0dab8253
--- /dev/null
+++ b/pkgs/development/python-modules/pdunehd/default.nix
@@ -0,0 +1,36 @@
+{ lib
+, buildPythonPackage
+, pythonOlder
+, fetchFromGitHub
+, requests
+}:
+
+buildPythonPackage rec {
+  pname = "pdunehd";
+  version = "1.3.2";
+
+  disabled = pythonOlder "3.6";
+
+  src = fetchFromGitHub {
+    owner = "valentinalexeev";
+    repo = "pdunehd";
+    rev = version;
+    sha256 = "06p0k82nf89rsakr8d2hdb19dp1wqp9bsf54lwb0qma47iakljjh";
+  };
+
+  propagatedBuildInputs = [
+    requests
+  ];
+
+  # no tests implemented
+  doCheck = false;
+
+  pythonImportsCheck = [ "pdunehd" ];
+
+  meta = with lib; {
+    description = "Python wrapper for Dune HD media player API";
+    homepage = "https://github.com/valentinalexeev/pdunehd";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}