about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/coronavirus/default.nix
blob: ddf87816b8f7367e3ab3d110eaee76b1c9fddfa2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 ];
  };
}