summary refs log tree commit diff
path: root/pkgs/development/python-modules/pymeteoclimatic/default.nix
blob: db150342a2a3765f4c9f8e765905808811504851 (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
33
34
35
36
37
38
39
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, lxml
, pythonOlder
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pymeteoclimatic";
  version = "0.0.6";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "adrianmo";
    repo = pname;
    rev = version;
    sha256 = "0ys0d6jy7416gbsd0pqgvm5ygzn36pjdaklqi4q56vsb13zn7y0h";
  };

  propagatedBuildInputs = [
    beautifulsoup4
    lxml
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "meteoclimatic" ];

  meta = with lib; {
    description = "Python wrapper around the Meteoclimatic service";
    homepage = "https://github.com/adrianmo/pymeteoclimatic";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}