Files
nixpkgs/pkgs/development/python-modules/entsoe-apy/default.nix
2026-06-19 17:05:11 +00:00

48 lines
855 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
isodate,
httpx,
loguru,
xsdata-pydantic,
}:
buildPythonPackage rec {
pname = "entsoe-apy";
version = "1.1.1";
src = fetchFromGitHub {
owner = "berrij";
repo = "entsoe-apy";
tag = "v${version}";
hash = "sha256-IzZ20ZCdJRxzCQDLX5Gs78ynPHGp5kdTbDA+fsdVhlM=";
};
pyproject = true;
build-system = [ setuptools ];
dependencies = [
httpx
loguru
xsdata-pydantic
isodate
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"entsoe"
];
meta = {
description = "Python Package to Query the ENTSO-E API";
homepage = "https://github.com/berrij/entsoe-apy";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ berrij ];
platforms = lib.platforms.all;
};
}