depot/third_party/nixpkgs/pkgs/development/python-modules/pydrawise/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

62 lines
1.1 KiB
Nix

{
lib,
aiohttp,
aioresponses,
apischema,
buildPythonPackage,
fetchFromGitHub,
freezegun,
gql,
graphql-core,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
requests,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "pydrawise";
version = "2024.6.5";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "dknowles2";
repo = "pydrawise";
rev = "refs/tags/${version}";
hash = "sha256-ug9gADM6ig6i2mu3GhQ+vsbNf3vEfR4L7OQ5Ixuh5so=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
aiohttp
apischema
gql
graphql-core
requests
];
nativeCheckInputs = [
aioresponses
freezegun
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "pydrawise" ];
meta = with lib; {
description = "Library for interacting with Hydrawise sprinkler controllers through the GraphQL API";
homepage = "https://github.com/dknowles2/pydrawise";
changelog = "https://github.com/dknowles2/pydrawise/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}