From 6e3ceefab470b068f1d654a5f622d299d5d91d2e Mon Sep 17 00:00:00 2001 From: George Raven Date: Sun, 18 Aug 2024 12:13:12 +0100 Subject: [PATCH] Added python-cdsapi to automation --- python-cdsapi/.SRCINFO | 17 +++++++++++++++++ python-cdsapi/PKGBUILD | 28 ++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 python-cdsapi/.SRCINFO create mode 100644 python-cdsapi/PKGBUILD diff --git a/python-cdsapi/.SRCINFO b/python-cdsapi/.SRCINFO new file mode 100644 index 00000000..3bb122ca --- /dev/null +++ b/python-cdsapi/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python-cdsapi + pkgdesc = Copernicus Common Data Store API (was Climate Data Store) + pkgver = 0.7.0 + pkgrel = 1 + url = https://github.com/ecmwf/cdsapi + arch = x86_64 + arch = armv7l + arch = armv7h + arch = aarch64 + license = apache + makedepends = python-setuptools + depends = python-tqdm + depends = python-requests + source = https://files.pythonhosted.org/packages/source/c/cdsapi/cdsapi-0.7.0.tar.gz + b2sums = 2a954e36114120236185739b66351fc2a4108d34b1dda0d86b4fda0281810ff09fb601221d7d4a5a3cadf1ddb799b51789b8ae1a7fcaeec9e897f831c1106857 + +pkgname = python-cdsapi diff --git a/python-cdsapi/PKGBUILD b/python-cdsapi/PKGBUILD new file mode 100644 index 00000000..4abd68ab --- /dev/null +++ b/python-cdsapi/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: George Raven + +pkgname=python-cdsapi +_name=${pkgname#python-} +pkgdesc="Copernicus Common Data Store API (was Climate Data Store)" +pkgver=0.7.0 # renovate: datasource=github-tags depName=ecmwf/cdsapi +pkgrel=1 +arch=('x86_64' 'armv7l' 'armv7h' 'aarch64') +url="https://github.com/ecmwf/cdsapi" +license=('apache') +conflicts=() +provides=() +depends=("python-tqdm" "python-requests") +makedepends=('python-setuptools') +source=( + https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz +) +b2sums=('2a954e36114120236185739b66351fc2a4108d34b1dda0d86b4fda0281810ff09fb601221d7d4a5a3cadf1ddb799b51789b8ae1a7fcaeec9e897f831c1106857') + +build() { + cd "$_name-$pkgver" + python setup.py build +} + +package() { + cd "$_name-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 +}