Files
nixpkgs/pkgs/development/python-modules/aiopvpc/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

55 lines
1.1 KiB
Nix

{
lib,
aiohttp,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-asyncio,
pytest-timeout,
pytest-cov-stub,
pytestCheckHook,
pythonOlder,
python-dotenv,
}:
buildPythonPackage rec {
pname = "aiopvpc";
version = "4.3.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "azogue";
repo = "aiopvpc";
tag = "v${version}";
hash = "sha256-1xeXfhoXRfJ7vrpRPeYmwcAGjL09iNCOm/f4pPvuZLU=";
};
build-system = [ poetry-core ];
dependencies = [
aiohttp
async-timeout
];
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytest-cov-stub
pytestCheckHook
python-dotenv
];
pythonImportsCheck = [ "aiopvpc" ];
meta = {
description = "Python module to download Spanish electricity hourly prices (PVPC)";
homepage = "https://github.com/azogue/aiopvpc";
changelog = "https://github.com/azogue/aiopvpc/blob/v${version}/CHANGELOG.md";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}