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
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchpatch,
|
|
fetchPypi,
|
|
setuptools,
|
|
docutils,
|
|
jinja2,
|
|
nbconvert,
|
|
nbformat,
|
|
sphinx,
|
|
traitlets,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nbsphinx";
|
|
version = "0.9.7";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-q9KYpobVX6iU72l8UdRPJOU6oxLa2uOOgpIPJQpUVv4=";
|
|
};
|
|
patches = [
|
|
(fetchpatch {
|
|
url = "https://github.com/spatialaudio/nbsphinx/commit/a921973a5d8ecc39c6e02184572b79ab72c9978c.patch";
|
|
hash = "sha256-uxfSaOESWn8uVcUm+1ADzQgMQDEqaTs0TbfNYsS+E6I=";
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
docutils
|
|
jinja2
|
|
nbconvert
|
|
nbformat
|
|
sphinx
|
|
traitlets
|
|
];
|
|
|
|
# The package has not tests
|
|
doCheck = false;
|
|
|
|
JUPYTER_PATH = "${nbconvert}/share/jupyter";
|
|
|
|
pythonImportsCheck = [ "nbsphinx" ];
|
|
|
|
meta = {
|
|
description = "Jupyter Notebook Tools for Sphinx";
|
|
homepage = "https://nbsphinx.readthedocs.io/";
|
|
changelog = "https://github.com/spatialaudio/nbsphinx/blob/${version}/NEWS.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|