mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-26 06:44:06 +00:00
python310Packages.jupyter-cache: fix build
Relax dependency on SQLAlchemy.
This commit is contained in:
parent
5fd439e1ce
commit
ff89da0ee6
@ -10,11 +10,14 @@
|
||||
, sqlalchemy
|
||||
, tabulate
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, pythonRelaxDepsHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "jupyter-cache";
|
||||
version = "0.5.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@ -23,10 +26,10 @@ buildPythonPackage rec {
|
||||
sha256 = "87408030a4c8c14fe3f8fe62e6ceeb24c84e544c7ced20bfee45968053d07801";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "nbclient>=0.2,<0.6" "nbclient"
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
@ -39,6 +42,11 @@ buildPythonPackage rec {
|
||||
tabulate
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"nbclient"
|
||||
"sqlalchemy" # See https://github.com/executablebooks/jupyter-cache/pull/93
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "jupyter_cache" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user