Files
nixpkgs/pkgs/development/python-modules/neo4j/default.nix
T
Martin Weinelt 947fa42d0d python3Packages.neo4j: 5.28.1 -> 5.28.2
https://github.com/neo4j/neo4j-python-driver/releases/tag/5.28.2

This commit was automatically generated using update-python-libraries.
2025-08-09 19:01:54 +02:00

66 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pandas,
pyarrow,
pythonOlder,
pytz,
setuptools,
tomlkit,
}:
buildPythonPackage rec {
pname = "neo4j";
version = "5.28.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "neo4j";
repo = "neo4j-python-driver";
tag = version;
hash = "sha256-dQvQO+Re+ki9w+itzE6/WdiiLdMlU4yePt01vAPe4+M=";
};
postPatch = ''
# The dynamic versioning adds a postfix (.dev0) to the version
substituteInPlace pyproject.toml \
--replace-fail "setuptools ==" "setuptools >=" \
--replace-fail "tomlkit ==" "tomlkit >=" \
--replace-fail 'dynamic = ["version", "readme"]' 'dynamic = ["readme"]' \
--replace-fail '#readme = "README.rst"' 'version = "${version}"'
'';
build-system = [ setuptools ];
dependencies = [
pytz
tomlkit
];
optional-dependencies = {
numpy = [ numpy ];
pandas = [
numpy
pandas
];
pyarrow = [ pyarrow ];
};
# Missing dependencies
doCheck = false;
pythonImportsCheck = [ "neo4j" ];
meta = with lib; {
description = "Neo4j Bolt Driver for Python";
homepage = "https://github.com/neo4j/neo4j-python-driver";
changelog = "https://github.com/neo4j/neo4j-python-driver/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}