2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, attrs
|
|
|
|
, click
|
2023-04-29 16:46:19 +00:00
|
|
|
, flit-core
|
2022-07-14 12:49:19 +00:00
|
|
|
, importlib-metadata
|
|
|
|
, nbclient
|
|
|
|
, nbformat
|
|
|
|
, pyyaml
|
|
|
|
, sqlalchemy
|
|
|
|
, tabulate
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jupyter-cache";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.0.0";
|
|
|
|
pyproject = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "jupyter_cache";
|
|
|
|
hash = "sha256-0Pp9dTPNV5gZjYiJMYJpqME4LtOyL2IsCak1ZSH0hoc=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
nativeBuildInputs = [
|
2023-04-29 16:46:19 +00:00
|
|
|
flit-core
|
2023-03-27 19:17:25 +00:00
|
|
|
];
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jcache";
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://github.com/executablebooks/jupyter-cache";
|
2023-11-16 04:20:00 +00:00
|
|
|
changelog = "https://github.com/executablebooks/jupyter-cache/blob/v${version}/CHANGELOG.md";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ marsam ];
|
|
|
|
};
|
|
|
|
}
|