1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
46 lines
850 B
Nix
46 lines
850 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|