blob: 81b068e23212489a844a59bee9916b04ccf65271 (
plain) (
blame)
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
51
52
53
54
55
56
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, requests
, matrix-client
, distro
, click
, typing-extensions
, matrix-nio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "zulip";
version = "0.9.0";
disabled = pythonOlder "3.8";
pyproject = true;
# no sdist on PyPI
src = fetchFromGitHub {
owner = "zulip";
repo = "python-zulip-api";
rev = version;
hash = "sha256-YnNXduZ2KOjRHGwhojkqpMP2mwhflk8/f4FVZL8NvHU=";
};
sourceRoot = "${src.name}/zulip";
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
requests
distro
click
typing-extensions
] ++ requests.optional-dependencies.security;
nativeCheckInputs = [
matrix-nio
pytestCheckHook
];
pythonImportsCheck = [ "zulip" ];
meta = with lib; {
description = "Bindings for the Zulip message API";
homepage = "https://github.com/zulip/python-zulip-api";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}
|