mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
python311Packages.neo4j: refactor
- skip dynamic versioning for now
This commit is contained in:
parent
7081bd488c
commit
34df71bf34
@ -1,15 +1,19 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, pandas
|
||||
, pyarrow
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, setuptools
|
||||
, tomlkit
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "neo4j";
|
||||
version = "5.16.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@ -20,11 +24,36 @@ buildPythonPackage rec {
|
||||
hash = "sha256-ly/R2ufd5gEkUyfajpeMQblTiKipC9HFtxkWkh16zLo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# The dynamic versioning adds a postfix (.dev0) to the version
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace '"tomlkit ~= 0.11.6"' '"tomlkit >= 0.11.6"' \
|
||||
--replace 'dynamic = ["version", "readme"]' 'dynamic = ["readme"]' \
|
||||
--replace '#readme = "README.rst"' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pytz
|
||||
tomlkit
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
numpy = [
|
||||
numpy
|
||||
];
|
||||
pandas = [
|
||||
numpy
|
||||
pandas
|
||||
];
|
||||
pyarrow = [
|
||||
pyarrow
|
||||
];
|
||||
};
|
||||
|
||||
# Missing dependencies
|
||||
doCheck = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user