5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
64 lines
1 KiB
Nix
64 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonRelaxDepsHook
|
|
, setuptools
|
|
, ipywidgets
|
|
, fastcore
|
|
, astunparse
|
|
, watchdog
|
|
, execnb
|
|
, ghapi
|
|
, pyyaml
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbdev";
|
|
version = "2.3.20";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-tBrWdG8njNQzQ3kc0ATeu3ToP34gdmOBKj2jcB0X8+8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"ipywidgets"
|
|
];
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
astunparse
|
|
execnb
|
|
fastcore
|
|
ghapi
|
|
ipywidgets
|
|
pyyaml
|
|
watchdog
|
|
];
|
|
|
|
# no real tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"nbdev"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/fastai/nbdev";
|
|
description = "Create delightful software with Jupyter Notebooks";
|
|
changelog = "https://github.com/fastai/nbdev/blob/${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ rxiao ];
|
|
};
|
|
}
|