1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
56 lines
938 B
Nix
56 lines
938 B
Nix
{
|
|
lib,
|
|
build,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
ipywidgets,
|
|
fastcore,
|
|
astunparse,
|
|
watchdog,
|
|
execnb,
|
|
ghapi,
|
|
pyyaml,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbdev";
|
|
version = "2.4.7";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-SonqSaW/xmM91Cy0aLAkVUrXuNnkjg+ZphZF3I5ZGvQ=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "ipywidgets" ];
|
|
|
|
build-system = [
|
|
build
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
astunparse
|
|
execnb
|
|
fastcore
|
|
ghapi
|
|
ipywidgets
|
|
pyyaml
|
|
watchdog
|
|
];
|
|
|
|
# no real tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "nbdev" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/fastai/nbdev";
|
|
description = "Create delightful software with Jupyter Notebooks";
|
|
changelog = "https://github.com/fastai/nbdev/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ rxiao ];
|
|
};
|
|
}
|