about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-01-07 07:05:02 +0000
committerGitHub <noreply@github.com>2021-01-07 07:05:02 +0000
commite65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc (patch)
tree622375daf6d2ccd734fd187ecbaf13b24e270173
parent331186b9ac7edc9e9aea1fc692da8880a549e33f (diff)
parent5648777206c27a81e83528e9caa6852be4d70025 (diff)
downloadnixlib-e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc.tar
nixlib-e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc.tar.gz
nixlib-e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc.tar.bz2
nixlib-e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc.tar.lz
nixlib-e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc.tar.xz
nixlib-e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc.tar.zst
nixlib-e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc.zip
Merge pull request #108616 from fabaff/coronavirus
-rw-r--r--pkgs/development/python-modules/coronavirus/default.nix32
-rw-r--r--pkgs/servers/home-assistant/component-packages.nix2
-rw-r--r--pkgs/top-level/python-packages.nix2
3 files changed, 35 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/coronavirus/default.nix b/pkgs/development/python-modules/coronavirus/default.nix
new file mode 100644
index 000000000000..ddf87816b8f7
--- /dev/null
+++ b/pkgs/development/python-modules/coronavirus/default.nix
@@ -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 ];
+  };
+}
diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix
index 6df1239537eb..bde51a7f18e0 100644
--- a/pkgs/servers/home-assistant/component-packages.nix
+++ b/pkgs/servers/home-assistant/component-packages.nix
@@ -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
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index ad775f0712b3..df2334e140cb 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -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 { };