depot/third_party/nixpkgs/pkgs/development/python-modules/python-awair/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
902 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-aiohttp,
pytestCheckHook,
pythonOlder,
voluptuous,
vcrpy,
}:
buildPythonPackage rec {
pname = "python-awair";
version = "0.2.4";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ahayworth";
repo = "python_awair";
rev = version;
hash = "sha256-zdZyA6adM4bfEYupdZl7CzMjwyfRkQBrntNh0MusynE=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
aiohttp
voluptuous
];
nativeCheckInputs = [
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 ];
};
}