2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
setuptools,
|
|
|
|
ipywidgets,
|
|
|
|
fastcore,
|
|
|
|
astunparse,
|
|
|
|
watchdog,
|
|
|
|
execnb,
|
|
|
|
ghapi,
|
|
|
|
pyyaml,
|
|
|
|
pythonOlder,
|
2023-03-08 16:32:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbdev";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.3.23";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-+HbGHyJ2TX6qnBBPNivFVklrf+Ma2QM3u/2a67NxfIs=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "ipywidgets" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
dependencies = [
|
2023-03-24 00:07:29 +00:00
|
|
|
astunparse
|
|
|
|
execnb
|
2024-05-15 15:35:15 +00:00
|
|
|
fastcore
|
2023-03-24 00:07:29 +00:00
|
|
|
ghapi
|
2024-05-15 15:35:15 +00:00
|
|
|
ipywidgets
|
2023-03-24 00:07:29 +00:00
|
|
|
pyyaml
|
2024-05-15 15:35:15 +00:00
|
|
|
watchdog
|
2023-03-24 00:07:29 +00:00
|
|
|
];
|
|
|
|
|
2023-03-08 16:32:21 +00:00
|
|
|
# no real tests
|
|
|
|
doCheck = false;
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nbdev" ];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/fastai/nbdev";
|
|
|
|
description = "Create delightful software with Jupyter Notebooks";
|
2023-10-19 13:55:26 +00:00
|
|
|
changelog = "https://github.com/fastai/nbdev/blob/${version}/CHANGELOG.md";
|
2023-03-08 16:32:21 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rxiao ];
|
|
|
|
};
|
|
|
|
}
|