From ecb4d43bb13695a6a51f1d8a17f2abecf5a726f3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 29 Dec 2022 22:20:32 +0100 Subject: [PATCH] python310Packages.nbsphinx: add changelog to meta - disable on unsupported Python releases --- pkgs/development/python-modules/nbsphinx/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/nbsphinx/default.nix b/pkgs/development/python-modules/nbsphinx/default.nix index 2a0f7a60e89f..ac562279a1e0 100644 --- a/pkgs/development/python-modules/nbsphinx/default.nix +++ b/pkgs/development/python-modules/nbsphinx/default.nix @@ -7,7 +7,7 @@ , nbformat , sphinx , traitlets -, isPy3k +, pythonOlder }: buildPythonPackage rec { @@ -15,9 +15,11 @@ buildPythonPackage rec { version = "0.8.11"; format = "setuptools"; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; - sha256 = "sha256-q+GMBLM9m837PWbxGV9rDVHuykY+ywf2Bh3kl+QzFuQ="; + hash = "sha256-q+GMBLM9m837PWbxGV9rDVHuykY+ywf2Bh3kl+QzFuQ="; }; propagatedBuildInputs = [ @@ -33,16 +35,16 @@ buildPythonPackage rec { doCheck = false; JUPYTER_PATH = "${nbconvert}/share/jupyter"; + pythonImportsCheck = [ "nbsphinx" ]; - disabled = !isPy3k; - meta = with lib; { description = "Jupyter Notebook Tools for Sphinx"; homepage = "https://nbsphinx.readthedocs.io/"; + changelog = "https://github.com/spatialaudio/nbsphinx/blob/${version}/NEWS.rst"; license = licenses.mit; - maintainers = [ maintainers.costrouc ]; + maintainers = with maintainers; [ costrouc ]; }; }