Merge pull request #108616 from fabaff/coronavirus

This commit is contained in:
Jörg Thalheim 2021-01-07 07:05:02 +00:00 committed by GitHub
commit e65e269b5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 1 deletions

View file

@ -0,0 +1,32 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, aiohttp
}:
buildPythonPackage rec {
pname = "coronavirus";
version = "1.1.1";
src = fetchFromGitHub {
owner = "nabucasa";
repo = pname;
rev = version;
sha256 = "0mx6ifp8irj3669c67hs9r79k8gar6j4aq7d4ji21pllyhyahdwm";
};
propagatedBuildInputs = [
aiohttp
];
# no tests are present
doCheck = false;
pythonImportsCheck = [ "coronavirus" ];
meta = with lib; {
description = "Python client for getting Corona virus info";
homepage = "https://github.com/nabucasa/coronavirus";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -137,7 +137,7 @@
"control4" = ps: with ps; [ ]; # missing inputs: pyControl4
"conversation" = ps: with ps; [ aiohttp-cors ];
"coolmaster" = ps: with ps; [ ]; # missing inputs: pycoolmasternet-async
"coronavirus" = ps: with ps; [ ]; # missing inputs: coronavirus
"coronavirus" = ps: with ps; [ coronavirus ];
"counter" = ps: with ps; [ ];
"cover" = ps: with ps; [ ];
"cppm_tracker" = ps: with ps; [ ]; # missing inputs: clearpasspy

View file

@ -1384,6 +1384,8 @@ in {
cornice = callPackage ../development/python-modules/cornice { };
coronavirus = callPackage ../development/python-modules/coronavirus { };
cot = callPackage ../development/python-modules/cot { };
covCore = callPackage ../development/python-modules/cov-core { };