summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2020-01-17 07:58:30 +0000
committerJon <jonringer@users.noreply.github.com>2020-01-21 15:58:17 -0800
commitbb92cfdda2108184bb685181860ae20f41beeaab (patch)
treed94f9627ed926797ef2cbe839e683272c0980b7d /pkgs/development/python-modules
parent248b42757bd20595fc0c5a74fba67f2880cc4a25 (diff)
downloadnixpkgs-bb92cfdda2108184bb685181860ae20f41beeaab.tar
nixpkgs-bb92cfdda2108184bb685181860ae20f41beeaab.tar.gz
nixpkgs-bb92cfdda2108184bb685181860ae20f41beeaab.tar.bz2
nixpkgs-bb92cfdda2108184bb685181860ae20f41beeaab.tar.lz
nixpkgs-bb92cfdda2108184bb685181860ae20f41beeaab.tar.xz
nixpkgs-bb92cfdda2108184bb685181860ae20f41beeaab.tar.zst
nixpkgs-bb92cfdda2108184bb685181860ae20f41beeaab.zip
pythonPackages.denonavr: init at 0.7.10
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/denonavr/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/denonavr/default.nix b/pkgs/development/python-modules/denonavr/default.nix
new file mode 100644
index 00000000000..33c1570060e
--- /dev/null
+++ b/pkgs/development/python-modules/denonavr/default.nix
@@ -0,0 +1,29 @@
+{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests
+, pytest, testtools, requests-mock }:
+
+buildPythonPackage rec {
+  pname = "denonavr";
+  version = "0.7.10";
+
+  src = fetchFromGitHub {
+    owner = "scarface-4711";
+    repo = "denonavr";
+    rev = version;
+    sha256 = "078nhr69f68nfazhmkf2sl7wiadqx96a5ry3ziggiy1xs04vflj7";
+  };
+
+  propagatedBuildInputs = [ requests ];
+
+  doCheck = !isPy27;
+  checkInputs = [ pytest testtools requests-mock ];
+  checkPhase = ''
+    pytest tests
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/scarface-4711/denonavr";
+    description = "Automation Library for Denon AVR receivers.";
+    license = licenses.mit;
+    maintainers = with maintainers; [ colemickens ];
+  };
+}