Files
nixpkgs/pkgs/development/python-modules/aioopenexchangerates/default.nix
2026-04-13 09:26:33 +02:00

52 lines
1.1 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
mashumaro,
pytest-aiohttp,
pytest-cov-stub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "aioopenexchangerates";
version = "0.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "MartinHjelmare";
repo = "aioopenexchangerates";
tag = "v${finalAttrs.version}";
hash = "sha256-pNjpeoXBlz2bdUeEsOlW7RJmbKTZGuBVTLHymGHwAiY=";
};
pythonRelaxDeps = [ "pydantic" ];
build-system = [ setuptools ];
dependencies = [
aiohttp
mashumaro
];
nativeCheckInputs = [
aioresponses
pytest-aiohttp
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "aioopenexchangerates" ];
meta = {
description = "Library for the Openexchangerates API";
homepage = "https://github.com/MartinHjelmare/aioopenexchangerates";
changelog = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})