1{ lib 2, aiohttp 3, async-timeout 4, buildPythonPackage 5, fetchFromGitHub 6, isPy3k 7}: 8 9buildPythonPackage rec { 10 pname = "pyeight"; 11 version = "0.1.9"; 12 disabled = !isPy3k; 13 14 src = fetchFromGitHub { 15 owner = "mezz64"; 16 repo = "pyEight"; 17 rev = version; 18 sha256 = "1ybhs09wyzzaryghd6ijxhajp3677x63c4qzqsgln1mmxhj8wm5k"; 19 }; 20 21 propagatedBuildInputs = [ 22 aiohttp 23 async-timeout 24 ]; 25 26 # Project has no tests 27 doCheck = false; 28 pythonImportsCheck = [ "pyeight" ]; 29 30 meta = with lib; { 31 description = "Python library to interface with the Eight Sleep API"; 32 homepage = "https://github.com/mezz64/pyEight"; 33 license = with licenses; [ mit ]; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}