1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 certifi,
7 python-dateutil,
8 six,
9 urllib3,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "brevo-python";
15 version = "1.2.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "getbrevo";
20 repo = "brevo-python";
21 tag = "v${version}";
22 hash = "sha256-VYj1r69pgKgNCXzxRqvwlj5w+y3IIu21bsZJAe/7zf8=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 certifi
29 python-dateutil
30 six
31 urllib3
32 ];
33
34 nativeCheckInputs = [
35 pytestCheckHook
36 ];
37
38 disabledTestPaths = [
39 # broken import; https://github.com/getbrevo/brevo-python/issues/2
40 "test/test_configuration.py"
41 ];
42
43 pythonImportsCheck = [ "brevo_python" ];
44
45 meta = {
46 description = "Fully-featured Python API client to interact with Brevo";
47 homepage = "https://github.com/getbrevo/brevo-python";
48 license = lib.licenses.mit;
49 maintainers = with lib.maintainers; [ soyouzpanda ];
50 };
51}