Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, requests 6}: 7 8buildPythonPackage rec { 9 pname = "bravia-tv"; 10 version = "1.0.11"; 11 disabled = pythonOlder "3.6"; 12 13 src = fetchFromGitHub { 14 owner = "dcnielsen90"; 15 repo = "python-bravia-tv"; 16 rev = "v${version}"; 17 hash = "sha256-g47bDd5bZl0jad3o6T1jJLcnZj8nx944kz3Vxv8gD2U="; 18 }; 19 20 propagatedBuildInputs = [ requests ]; 21 22 # Package does not include tests 23 doCheck = false; 24 25 pythonImportsCheck = [ "bravia_tv" ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/dcnielsen90/python-bravia-tv"; 29 description = "Python library for Sony Bravia TV remote control"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ colemickens ]; 32 }; 33}