diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-01-07 07:05:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 07:05:02 +0000 |
commit | e65e269b5e2b2e06400d1be26ba3c8e6cc6b0abc (patch) | |
tree | 622375daf6d2ccd734fd187ecbaf13b24e270173 /pkgs/development | |
parent | 331186b9ac7edc9e9aea1fc692da8880a549e33f (diff) | |
parent | 5648777206c27a81e83528e9caa6852be4d70025 (diff) |
Merge pull request #108616 from fabaff/coronavirus
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/coronavirus/default.nix | 32 |
1 files changed, 32 insertions, 0 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 ]; + }; +} |