Files
nixpkgs/pkgs/development/python-modules/neo4j/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
pandas,
pyarrow,
pythonOlder,
pytz,
setuptools,
}:
buildPythonPackage rec {
pname = "neo4j";
version = "6.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "neo4j";
repo = "neo4j-python-driver";
tag = version;
hash = "sha256-KhPxwj5MmhNpd4d64dN0d1wOP6nAac/DsRQ8zoT03/A=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "setuptools ==" "setuptools >=" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
build-system = [ setuptools ];
dependencies = [ pytz ];
optional-dependencies = {
numpy = [ numpy ];
pandas = [
numpy
pandas
];
pyarrow = [ pyarrow ];
};
# Missing dependencies
doCheck = false;
pythonImportsCheck = [ "neo4j" ];
meta = {
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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}