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