depot/third_party/nixpkgs/pkgs/development/python-modules/pydrawise/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

63 lines
1.2 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.1.0";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "dknowles2";
repo = "pydrawise";
rev = "refs/tags/${version}";
hash = "sha256-FbnCo0kdAkm//OHINeEL8ibEH0BxVb9cOypyo54kXY4=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
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 ];
};
}