about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-03-28 17:04:07 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-03-28 20:24:15 +0100
commit49c1c82fd8ca32975eb553acc8d7ca25608c6955 (patch)
tree0e7d6c288d4be598d1d631e57840be7ba06dc6fc
parent5e0f3e5e36ce0a7a6ddb25ef9faf698c91250b3a (diff)
downloadnixlib-49c1c82fd8ca32975eb553acc8d7ca25608c6955.tar
nixlib-49c1c82fd8ca32975eb553acc8d7ca25608c6955.tar.gz
nixlib-49c1c82fd8ca32975eb553acc8d7ca25608c6955.tar.bz2
nixlib-49c1c82fd8ca32975eb553acc8d7ca25608c6955.tar.lz
nixlib-49c1c82fd8ca32975eb553acc8d7ca25608c6955.tar.xz
nixlib-49c1c82fd8ca32975eb553acc8d7ca25608c6955.tar.zst
nixlib-49c1c82fd8ca32975eb553acc8d7ca25608c6955.zip
python312Packages.nebula3-python: init at 3.5.0
Client API of Nebula Graph in Python

https://github.com/vesoft-inc/nebula-python
-rw-r--r--pkgs/development/python-modules/nebula3-python/default.nix67
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nebula3-python/default.nix b/pkgs/development/python-modules/nebula3-python/default.nix
new file mode 100644
index 000000000000..c352f732ef20
--- /dev/null
+++ b/pkgs/development/python-modules/nebula3-python/default.nix
@@ -0,0 +1,67 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pdm-backend
+, future
+, httplib2
+, pythonOlder
+, pytz
+, pytestCheckHook
+, six
+}:
+
+buildPythonPackage rec {
+  pname = "nebula3-python";
+  version = "3.5.0";
+  pyproject = true;
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchFromGitHub {
+    owner = "vesoft-inc";
+    repo = "nebula-python";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-T9lZVYov6tQ8QRM2QtOGyolHk3O5FSb3xq70nS2Rr6c=";
+  };
+
+  build-system = [
+    pdm-backend
+  ];
+
+  dependencies = [
+    future
+    httplib2
+    pytz
+    six
+  ];
+
+  nativeCheckInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [
+    "nebula3"
+  ];
+
+  disabledTestPaths = [
+    # Tests require a running thrift instance
+    "tests/test_connection.py"
+    "tests/test_data_from_server.py"
+    "tests/test_graph_storage_client.py"
+    "tests/test_meta_cache.py"
+    "tests/test_parameter.py"
+    "tests/test_pool.py"
+    "tests/test_session.py"
+    "tests/test_session_pool.py"
+    "tests/test_ssl_connection.py"
+    "tests/test_ssl_pool.py"
+  ];
+
+  meta = with lib; {
+    description = "Client API of Nebula Graph in Python";
+    homepage = "https://github.com/vesoft-inc/nebula-python";
+    changelog = "https://github.com/vesoft-inc/nebula-python/blob/${version}/CHANGELOG.md";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index e54ab6613cd4..3a4ee89b7a63 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -8530,6 +8530,8 @@ self: super: with self; {
 
   ndtypes = callPackage ../development/python-modules/ndtypes { };
 
+  nebula3-python = callPackage ../development/python-modules/nebula3-python { };
+
   nengo = callPackage ../development/python-modules/nengo { };
 
   neo = callPackage ../development/python-modules/neo { };