depot/third_party/nixpkgs/pkgs/development/python-modules/nbdev/default.nix

65 lines
1 KiB
Nix
Raw Normal View History

{ 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 ];
};
}