2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
voluptuous,
|
|
|
|
vcrpy,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-awair";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "0.2.4";
|
2021-03-09 03:18:52 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ahayworth";
|
|
|
|
repo = "python_awair";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-zdZyA6adM4bfEYupdZl7CzMjwyfRkQBrntNh0MusynE=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
voluptuous
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
vcrpy
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "python_awair" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for the Awair API";
|
|
|
|
homepage = "https://github.com/ahayworth/python_awair";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|