1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, aiohttp 5}: 6 7buildPythonPackage rec { 8 pname = "coronavirus"; 9 version = "1.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "nabucasa"; 13 repo = pname; 14 rev = version; 15 sha256 = "0mx6ifp8irj3669c67hs9r79k8gar6j4aq7d4ji21pllyhyahdwm"; 16 }; 17 18 propagatedBuildInputs = [ 19 aiohttp 20 ]; 21 22 # no tests are present 23 doCheck = false; 24 pythonImportsCheck = [ "coronavirus" ]; 25 26 meta = with lib; { 27 description = "Python client for getting Corona virus info"; 28 homepage = "https://github.com/nabucasa/coronavirus"; 29 license = with licenses; [ mit ]; 30 maintainers = with maintainers; [ fab ]; 31 }; 32}