nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 future,
6 httplib2,
7 httpx,
8 pdm-backend,
9 pytestCheckHook,
10 pytz,
11 six,
12}:
13
14buildPythonPackage rec {
15 pname = "nebula3-python";
16 version = "5.2.0";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "vesoft-inc";
21 repo = "nebula-python";
22 tag = version;
23 hash = "sha256-WVbLywb/uVHWjtzXHSSlvBUwFz0p3VtiYwAl/0CcMDw=";
24 };
25
26 build-system = [ pdm-backend ];
27
28 dependencies = [
29 future
30 httplib2
31 httpx
32 pytz
33 six
34 ]
35 ++ httpx.optional-dependencies.http2;
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "nebula3" ];
40
41 disabledTestPaths = [
42 # Tests require a running thrift instance
43 "tests/test_connection.py"
44 "tests/test_data_from_server.py"
45 "tests/test_graph_storage_client.py"
46 "tests/test_meta_cache.py"
47 "tests/test_parameter.py"
48 "tests/test_pool.py"
49 "tests/test_session.py"
50 "tests/test_session_pool.py"
51 "tests/test_ssl_connection.py"
52 "tests/test_ssl_pool.py"
53 ];
54
55 meta = {
56 description = "Client API of Nebula Graph in Python";
57 homepage = "https://github.com/vesoft-inc/nebula-python";
58 changelog = "https://github.com/vesoft-inc/nebula-python/blob/${src.tag}/CHANGELOG.md";
59 license = lib.licenses.asl20;
60 maintainers = with lib.maintainers; [ fab ];
61 };
62}