1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 requests,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "zammad-py";
12 version = "3.2.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "joeirimpan";
17 repo = "zammad_py";
18 tag = "v${version}";
19 hash = "sha256-gU5OA5m8X03GM7ImXZZVLkEyoAXRCoFskfop8oXJFH0=";
20 };
21
22 build-system = [
23 poetry-core
24 ];
25
26 dependencies = [
27 requests
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 disabledTests = [
35 # requires a local zammad instance
36 "test_users"
37 "test_tickets"
38 "test_groups"
39 "test_pagination"
40 ];
41
42 pythonImportsCheck = [
43 "zammad_py"
44 ];
45
46 meta = {
47 changelog = "https://github.com/joeirimpan/zammad_py/blob/${src.tag}/HISTORY.rst";
48 description = "Python API client for accessing zammad REST API";
49 homepage = "https://github.com/joeirimpan/zammad_py";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ hexa ];
52 };
53}