2023-03-08 16:32:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-05-15 15:35:15 +00:00
|
|
|
, pythonRelaxDepsHook
|
|
|
|
, setuptools
|
|
|
|
, ipywidgets
|
2023-03-08 16:32:21 +00:00
|
|
|
, fastcore
|
|
|
|
, astunparse
|
|
|
|
, watchdog
|
|
|
|
, execnb
|
|
|
|
, ghapi
|
2023-03-24 00:07:29 +00:00
|
|
|
, pyyaml
|
2023-03-08 16:32:21 +00:00
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nbdev";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.3.20";
|
|
|
|
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-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-tBrWdG8njNQzQ3kc0ATeu3ToP34gdmOBKj2jcB0X8+8=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"ipywidgets"
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|