summary refs log tree commit diff
path: root/pkgs/development/python-modules/swisshydrodata/default.nix
blob: 38ed15981fd443e0ea3b79c542c859db11280711 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, requests
, requests-mock
}:

buildPythonPackage rec {
  pname = "swisshydrodata";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "Bouni";
    repo = pname;
    rev = version;
    sha256 = "1rdgfc6zg5j3fvrpbqs9vc3n5m66r5yljawyl7nmrqd5lwq1lqak";
  };

  propagatedBuildInputs = [
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
    requests-mock
  ];

  pythonImportsCheck = [ "swisshydrodata" ];

  meta = with lib; {
    description = "Python client to get data from the Swiss federal Office for Environment FEON";
    homepage = "https://github.com/bouni/swisshydrodata";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}