mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 00:10:12 +00:00
42 lines
773 B
Nix
42 lines
773 B
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
lxml,
|
|
hatchling,
|
|
requests,
|
|
tzdata,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "lhpapi";
|
|
version = "1.0.14";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "stephan192";
|
|
repo = "lhpapi";
|
|
tag = "v${version}";
|
|
hash = "sha256-VNYTUnczB9oQncLoXtLSlLeu4tHtmum7XGVukG4zMcs=";
|
|
};
|
|
|
|
dependencies = [
|
|
beautifulsoup4
|
|
lxml
|
|
requests
|
|
tzdata
|
|
];
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
pythonImportsCheck = [ "lhpapi" ];
|
|
|
|
meta = {
|
|
description = "API to retrieve data from the Länderübergreifendes Hochwasser Portal (LHP)";
|
|
homepage = "https://github.com/stephan192/lhpapi";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ _9R ];
|
|
};
|
|
}
|