Files
nix-packaging/entsoe-apy.nix
2025-10-28 11:08:30 +01:00

46 lines
861 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
httpx,
loguru,
xsdata-pydantic,
}:
buildPythonPackage rec {
pname = "entsoe-apy";
version = "0.4.0";
src = fetchFromGitHub {
owner = "berrij";
repo = "entsoe-apy";
rev = "cb4ebd4ed401268e605b5267347e0e934d048883";
hash = "sha256-M0W0r7ApJKG0wMczC0kp/jNOa+PcgVGadvEOSQ2hRkU=";
};
pyproject = true;
build-system = [ setuptools ];
dependencies = [
httpx
loguru
xsdata-pydantic
];
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;
};
}