nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 deepdiff,
7 fetchFromGitHub,
8 poetry-core,
9 poetry-dynamic-versioning,
10 pycognito,
11 pyjwt,
12 pytest-aiohttp,
13 pytest-freezegun,
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "pylitterbot";
19 version = "2025.0.0";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "natekspencer";
24 repo = "pylitterbot";
25 tag = "v${version}";
26 hash = "sha256-Rr7QseViy6i13QbZVb8BxMWDsE9meG4NqT5B1Z+TZbc=";
27 };
28
29 build-system = [
30 poetry-core
31 poetry-dynamic-versioning
32 ];
33
34 dependencies = [
35 aiohttp
36 deepdiff
37 pycognito
38 pyjwt
39 ];
40
41 nativeCheckInputs = [
42 aioresponses
43 pytest-aiohttp
44 pytest-freezegun
45 pytestCheckHook
46 ];
47
48 pythonImportsCheck = [ "pylitterbot" ];
49
50 meta = {
51 description = "Modulefor controlling a Litter-Robot";
52 homepage = "https://github.com/natekspencer/pylitterbot";
53 changelog = "https://github.com/natekspencer/pylitterbot/releases/tag/${src.tag}";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ fab ];
56 };
57}