depot/third_party/nixpkgs/pkgs/development/python-modules/aioelectricitymaps/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

55 lines
1 KiB
Nix

{ lib
, aiohttp
, aresponses
, buildPythonPackage
, dataclasses-json
, fetchFromGitHub
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, syrupy
}:
buildPythonPackage rec {
pname = "aioelectricitymaps";
version = "0.1.6";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "jpbede";
repo = "aioelectricitymaps";
rev = "refs/tags/v${version}";
hash = "sha256-SyI+2hxKOiSdx5e+vkHLsIk5xj4gNvmfZTYZ10oJhfc=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
dataclasses-json
];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
syrupy
];
pythonImportsCheck = [
"aioelectricitymaps"
];
meta = with lib; {
description = "Module for interacting with Electricity maps";
homepage = "https://github.com/jpbede/aioelectricitymaps";
changelog = "https://github.com/jpbede/aioelectricitymaps/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}