depot/third_party/nixpkgs/pkgs/development/python-modules/nebula3-python/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

64 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
future,
httplib2,
httpx,
pdm-backend,
pytestCheckHook,
pythonOlder,
pytz,
six,
}:
buildPythonPackage rec {
pname = "nebula3-python";
version = "3.8.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "vesoft-inc";
repo = "nebula-python";
rev = "refs/tags/v${version}";
hash = "sha256-XwrrT5Vuwqw57u3Xt9nS4NjmFG2VD62gWSVfeek2478=";
};
build-system = [ pdm-backend ];
dependencies = [
future
httplib2
httpx
pytz
six
] ++ httpx.optional-dependencies.http2;
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 ];
};
}