Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 752 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27, requests, netifaces 2, pytest, testtools, requests-mock }: 3 4buildPythonPackage rec { 5 pname = "denonavr"; 6 version = "0.9.3"; 7 8 src = fetchFromGitHub { 9 owner = "scarface-4711"; 10 repo = "denonavr"; 11 rev = version; 12 sha256 = "0s8v918n6xn44r2mrq5hqbf0znpz64clq7a1jakkgz9py8bi6vnn"; 13 }; 14 15 propagatedBuildInputs = [ requests netifaces ]; 16 17 doCheck = !isPy27; 18 checkInputs = [ pytest testtools requests-mock ]; 19 checkPhase = '' 20 pytest tests 21 ''; 22 23 meta = with lib; { 24 homepage = "https://github.com/scarface-4711/denonavr"; 25 description = "Automation Library for Denon AVR receivers."; 26 license = licenses.mit; 27 maintainers = with maintainers; [ colemickens ]; 28 }; 29}