summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/noaa-coops/default.nix
blob: 5289ae54d195609c582a8dbcfa706060980bf3a5 (plain)
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
40
41
42
43
44
45
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchPypi,
  pandas,
  poetry-core,
  requests,
  zeep,
}:

buildPythonPackage rec {
  pname = "noaa-coops";
  version = "0.4.0";
  pyproject = true;

  src = fetchPypi {
    pname = "noaa_coops";
    inherit version;
    hash = "sha256-m3hTzUspYTMukwcj3uBbRahTmXbL1aJVD9NXfjwghB8=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    pandas
    requests
    zeep
  ];

  # The package does not include tests in the PyPI source distribution
  doCheck = false;

  pythonImportsCheck = [
    "noaa_coops"
    "noaa_coops.station"
  ];

  meta = {
    description = "Python wrapper for NOAA CO-OPS Tides & Currents Data and Metadata APIs";
    homepage = "https://github.com/GClunies/noaa_coops";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.jamiemagee ];
  };
}