Unverified Commit 3b6fca1a authored by Martin Weinelt's avatar Martin Weinelt
Browse files

python3Packages.zammad-py: init at 3.2.0

Python API client for the Zammad REST API.
parent 082cd19e
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  requests,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "zammad-py";
  version = "3.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "joeirimpan";
    repo = "zammad_py";
    tag = "v${version}";
    hash = "sha256-gU5OA5m8X03GM7ImXZZVLkEyoAXRCoFskfop8oXJFH0=";
  };

  build-system = [
    poetry-core
  ];

  dependencies = [
    requests
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # requires a local zammad instance
    "test_users"
    "test_tickets"
    "test_groups"
    "test_pagination"
  ];

  pythonImportsCheck = [
    "zammad_py"
  ];

  meta = {
    changelog = "https://github.com/joeirimpan/zammad_py/blob/${src.tag}/HISTORY.rst";
    description = "Python API client for accessing zammad REST API";
    homepage = "https://github.com/joeirimpan/zammad_py";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hexa ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -19741,6 +19741,8 @@ self: super: with self; {
  zamg = callPackage ../development/python-modules/zamg { };
  zammad-py = callPackage ../development/python-modules/zammad-py { };
  zarr = callPackage ../development/python-modules/zarr { };
  zc-buildout = callPackage ../development/python-modules/zc-buildout { };