63 lines
1.2 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
deepdiff,
fetchFromGitHub,
poetry-core,
poetry-dynamic-versioning,
pycognito,
pyjwt,
pytest-aiohttp,
pytest-freezegun,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pylitterbot";
version = "2024.2.3";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "natekspencer";
repo = "pylitterbot";
tag = "v${version}";
hash = "sha256-r0Nd9xDj6l913ofu7jeBbCud01yw/lgiHO1L6XN9B+Y=";
};
pythonRelaxDeps = [ "deepdiff" ];
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
aiohttp
deepdiff
pycognito
pyjwt
];
nativeCheckInputs = [
aioresponses
pytest-aiohttp
pytest-freezegun
pytestCheckHook
];
pythonImportsCheck = [ "pylitterbot" ];
meta = with lib; {
description = "Modulefor controlling a Litter-Robot";
homepage = "https://github.com/natekspencer/pylitterbot";
changelog = "https://github.com/natekspencer/pylitterbot/releases/tag/${src.tag}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}