2020-09-25 04:45:31 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, setuptools
|
2020-09-25 04:45:31 +00:00
|
|
|
, requests
|
|
|
|
, matrix-client
|
|
|
|
, distro
|
2021-12-06 16:07:01 +00:00
|
|
|
, click
|
2022-04-27 09:35:20 +00:00
|
|
|
, typing-extensions
|
2024-01-02 11:29:13 +00:00
|
|
|
, matrix-nio
|
2021-04-13 19:44:15 +00:00
|
|
|
, pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zulip";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.9.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
pyproject = true;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# no sdist on PyPI
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zulip";
|
|
|
|
repo = "python-zulip-api";
|
|
|
|
rev = version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-YnNXduZ2KOjRHGwhojkqpMP2mwhflk8/f4FVZL8NvHU=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
sourceRoot = "${src.name}/zulip";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
distro
|
2021-12-06 16:07:01 +00:00
|
|
|
click
|
2022-04-27 09:35:20 +00:00
|
|
|
typing-extensions
|
2024-01-02 11:29:13 +00:00
|
|
|
] ++ requests.optional-dependencies.security;
|
2021-04-13 19:44:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-02 11:29:13 +00:00
|
|
|
matrix-nio
|
2021-04-13 19:44:15 +00:00
|
|
|
pytestCheckHook
|
2020-09-25 04:45:31 +00:00
|
|
|
];
|
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
pythonImportsCheck = [ "zulip" ];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|