depot/third_party/nixpkgs/pkgs/development/python-modules/jupyter-cache/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

50 lines
941 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, attrs
, click
, importlib-metadata
, nbclient
, nbformat
, pyyaml
, sqlalchemy
, tabulate
, pythonOlder
}:
buildPythonPackage rec {
pname = "jupyter-cache";
version = "0.5.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "87408030a4c8c14fe3f8fe62e6ceeb24c84e544c7ced20bfee45968053d07801";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "nbclient>=0.2,<0.6" "nbclient"
'';
propagatedBuildInputs = [
attrs
click
importlib-metadata
nbclient
nbformat
pyyaml
sqlalchemy
tabulate
];
pythonImportsCheck = [ "jupyter_cache" ];
meta = with lib; {
description = "A defined interface for working with a cache of jupyter notebooks";
homepage = "https://github.com/executablebooks/jupyter-cache";
license = licenses.mit;
maintainers = with maintainers; [ marsam ];
};
}