mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:04:16 +01:00
49 lines
947 B
Nix
49 lines
947 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pytest-asyncio,
|
|
pytest-aiohttp,
|
|
pytestCheckHook,
|
|
voluptuous,
|
|
vcrpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-awair";
|
|
version = "0.2.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ahayworth";
|
|
repo = "python_awair";
|
|
tag = version;
|
|
hash = "sha256-ZET24T6MeCPPL1V84538U6Fb/ZVGv1hwcdTQi3Q+yMY=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
voluptuous
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-aiohttp
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
vcrpy
|
|
];
|
|
|
|
pythonImportsCheck = [ "python_awair" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/ahayworth/python_awair/releases/tag/${src.tag}";
|
|
description = "Python library for the Awair API";
|
|
homepage = "https://github.com/ahayworth/python_awair";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|