NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.11k stars 14.15k forks source link

Package request: copernicusmarine #338378

Open HVinther opened 2 months ago

HVinther commented 2 months 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 2 months 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
  ];
}