1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, requests
6, matrix-client
7, distro
8, click
9, typing-extensions
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "zulip";
15 version = "0.8.2";
16
17 disabled = pythonOlder "3.6";
18
19 # no sdist on PyPI
20 src = fetchFromGitHub {
21 owner = "zulip";
22 repo = "python-zulip-api";
23 rev = version;
24 hash = "sha256-Z5WrV/RDQwdKUBF86M5/xWhXn3fGNqJtqO5PTd7s5ME=";
25 };
26 sourceRoot = "${src.name}/zulip";
27
28 propagatedBuildInputs = [
29 requests
30 matrix-client
31 distro
32 click
33 typing-extensions
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [ "zulip" ];
41
42 meta = with lib; {
43 description = "Bindings for the Zulip message API";
44 homepage = "https://github.com/zulip/python-zulip-api";
45 license = licenses.asl20;
46 maintainers = with maintainers; [ dotlambda ];
47 };
48}