NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.39k stars 13.61k forks source link

Package request: copernicusmarine #338378

Open HVinther opened 2 weeks ago

HVinther commented 2 weeks ago

Project description The copernicusmarine offers capabilities through both Command Line Interface (CLI) and Python API:

Metadata


Add a :+1: reaction to issues you find important.

Sigmanificient commented 1 week ago

Cant test it properly as I dont have credentials to login, but here is a starter base:

{
  buildPythonPackage,
  fetchPypi,
  click,
  nest-asyncio,
  pystac,
  aiohttp,
  cachier,
  tqdm,
  boto3,
  certifi,
  requests,
  cftime,
  pandas,
  xarray,
  semver,
  lxml,
  zarr,
  dask,
}:

buildPythonPackage rec {
  pname = "copernicusmarine";
  version = "1.3.3";
  format = "wheel";

  src = fetchPypi {
    inherit pname version format;
    dist = "py3";
    python = "py3";
    hash = "sha256-ajU1dWIR0lJxvPwG4c6MFrm9mZo2w4Oe4cdqpEDA6iE=";
  };

  dependencies = [
    click
    nest-asyncio
    pystac
    aiohttp
    cachier
    tqdm
    boto3
    certifi
    requests
    cftime
    pandas
    xarray
    semver
    lxml
    zarr
    dask
  ];
}