depot/third_party/nixpkgs/pkgs/development/python-modules/pydrawise/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

65 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 = "2023.10.0";
format = "pyproject";
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "dknowles2";
repo = "pydrawise";
rev = "refs/tags/${version}";
hash = "sha256-CSjYLiOvnm1kFp4DL3w/YmAsDcbaCfLfGT0xUZy+GZ0=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
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 ];
};
}