Files
nixpkgs/pkgs/development/python-modules/dwdwfsapi/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

42 lines
827 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
requests,
ciso8601,
pythonOlder,
}:
buildPythonPackage rec {
pname = "dwdwfsapi";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-7dIVD+4MiYtsjAM5j67MlbiUN2Q5DpK6bUU0ZuHN2rk=";
};
build-system = [ hatchling ];
dependencies = [
requests
ciso8601
];
# All tests require network access
doCheck = false;
pythonImportsCheck = [ "dwdwfsapi" ];
meta = {
description = "Python client to retrieve data provided by DWD via their geoserver WFS API";
homepage = "https://github.com/stephan192/dwdwfsapi";
changelog = "https://github.com/stephan192/dwdwfsapi/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
};
}