about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pyipma/default.nix
blob: b34c4838cb8db06bfd933d82f9c38d75b34d96b3 (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
{ lib
, aiohttp
, buildPythonPackage
, fetchPypi
, geopy
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pyipma";
  version = "2.1.5";
  disabled = pythonOlder "3.7";

  # Request for GitHub releases, https://github.com/dgomes/pyipma/issues/10
  src = fetchPypi {
    inherit pname version;
    sha256 = "0hq5dasqpsn64x2sf6a28hdmysygmcdq4in6s08w97jfvwc6xmym";
  };

  propagatedBuildInputs = [
    aiohttp
    geopy
  ];

  # Project has no tests included in the PyPI releases
  doCheck = false;

  pythonImportsCheck = [ "pyipma" ];

  meta = with lib; {
    description = "Python library to retrieve information from Instituto Português do Mar e Atmosfera";
    homepage = "https://github.com/dgomes/pyipma";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}