mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-15 05:26:31 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
future,
|
|
httplib2,
|
|
httpx,
|
|
pdm-backend,
|
|
pytestCheckHook,
|
|
pytz,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nebula3-python";
|
|
version = "3.8.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vesoft-inc";
|
|
repo = "nebula-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-p2dXpcOwVKbdfRKKTAc4LhaNuTjvPd8BBBI8aUivaZ4=";
|
|
};
|
|
|
|
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 = {
|
|
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 = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|