summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/zulip/default.nix
blob: 358a8b9daeb1460591aeaa3624daddf1a08ef0a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  requests,
  distro,
  click,
  typing-extensions,
  matrix-nio,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "zulip";
  version = "0.9.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "zulip";
    repo = "python-zulip-api";
    tag = version;
    hash = "sha256-mcqIfha+4nsqlshayLQ2Sd+XOYVKf1FkoczjiFRNybc=";
  };
  sourceRoot = "${src.name}/zulip";

  build-system = [ setuptools ];

  dependencies = [
    requests
    distro
    click
    typing-extensions
  ]
  ++ requests.optional-dependencies.security;

  nativeCheckInputs = [
    matrix-nio
    pytestCheckHook
  ];

  pythonImportsCheck = [ "zulip" ];

  meta = {
    description = "Bindings for the Zulip message API";
    homepage = "https://github.com/zulip/python-zulip-api";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}