1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, fetchFromGitHub
6, poetry-core
7, pyjwt
8, pytest-aiohttp
9, pytest-freezegun
10, pytestCheckHook
11, pythonOlder
12, deepdiff
13}:
14
15buildPythonPackage rec {
16 pname = "pylitterbot";
17 version = "2023.4.0";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "natekspencer";
24 repo = pname;
25 rev = "refs/tags/${version}";
26 hash = "sha256-nF6njY2qNoHW2ZGNDHNeTBTjSBbitJxitPgyayLaqSE=";
27 };
28
29 nativeBuildInputs = [
30 poetry-core
31 ];
32
33 propagatedBuildInputs = [
34 aiohttp
35 deepdiff
36 pyjwt
37 ];
38
39 nativeCheckInputs = [
40 aioresponses
41 pytest-aiohttp
42 pytest-freezegun
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [
47 "pylitterbot"
48 ];
49
50 meta = with lib; {
51 description = "Modulefor controlling a Litter-Robot";
52 homepage = "https://github.com/natekspencer/pylitterbot";
53 changelog = "https://github.com/natekspencer/pylitterbot/releases/tag/${version}";
54 license = with licenses; [ mit ];
55 maintainers = with maintainers; [ fab ];
56 };
57}