depot/third_party/nixpkgs/pkgs/development/python-modules/pylitterbot/default.nix

62 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 = "2023.5.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "natekspencer";
repo = "pylitterbot";
rev = "refs/tags/v${version}";
hash = "sha256-Mpqa7pMxnFdSL1KGTUbgjh1zd8bAcoyzgxRZZ4SGfYc=";
};
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/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}