2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-04-05 15:23:46 +00:00
|
|
|
, poetry-core
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytest-aiohttp
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, voluptuous
|
|
|
|
, vcrpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-awair";
|
2022-04-03 18:54:34 +00:00
|
|
|
version = "0.2.3";
|
2021-03-09 03:18:52 +00:00
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ahayworth";
|
|
|
|
repo = "python_awair";
|
|
|
|
rev = version;
|
2022-04-03 18:54:34 +00:00
|
|
|
sha256 = "sha256-Roqmwamv/2/O87jfyymCGgRlw/woUhCNIuM9MLT3+Cw=";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|