1{ lib 2, buildPythonPackage 3, fetchPypi 4, attrs 5, click 6, importlib-metadata 7, nbclient 8, nbformat 9, pyyaml 10, sqlalchemy 11, tabulate 12, pythonOlder 13}: 14 15buildPythonPackage rec { 16 pname = "jupyter-cache"; 17 version = "0.5.0"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "87408030a4c8c14fe3f8fe62e6ceeb24c84e544c7ced20bfee45968053d07801"; 24 }; 25 26 postPatch = '' 27 substituteInPlace setup.cfg \ 28 --replace "nbclient>=0.2,<0.6" "nbclient" 29 ''; 30 31 propagatedBuildInputs = [ 32 attrs 33 click 34 importlib-metadata 35 nbclient 36 nbformat 37 pyyaml 38 sqlalchemy 39 tabulate 40 ]; 41 42 pythonImportsCheck = [ "jupyter_cache" ]; 43 44 meta = with lib; { 45 description = "A defined interface for working with a cache of jupyter notebooks"; 46 homepage = "https://github.com/executablebooks/jupyter-cache"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ marsam ]; 49 }; 50}