From e5f1812bd5157e68a064ae425b56f80d926d3209 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 21 Feb 2023 04:20:00 +0000 Subject: [PATCH 1/3] python310Packages.accessible-pygments: init at 0.0.3 --- .../accessible-pygments/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/accessible-pygments/default.nix diff --git a/pkgs/development/python-modules/accessible-pygments/default.nix b/pkgs/development/python-modules/accessible-pygments/default.nix new file mode 100644 index 000000000000..0b5c39117cc7 --- /dev/null +++ b/pkgs/development/python-modules/accessible-pygments/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, pygments +}: + +buildPythonPackage rec { + pname = "accessible-pygments"; + version = "0.0.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-CRe1B2RqazOT60kJGmJQb2sqOTX12V5NEkncUF+KTq4="; + }; + + propagatedBuildInputs = [ + pygments + ]; + + # Tests only execute pygments with these styles + doCheck = false; + + pythonImportsCheck = [ + "a11y_pygments" + "a11y_pygments.utils" + ]; + + meta = with lib; { + description = "A collection of accessible pygments styles"; + homepage = "https://github.com/Quansight-Labs/accessible-pygments"; + changelog = "https://github.com/Quansight-Labs/accessible-pygments/raw/v${version}/CHANGELOG.md"; + license = licenses.bsd3; + maintainers = with maintainers; [ marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f09a8eb1a188..52125dcc054d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20,6 +20,8 @@ self: super: with self; { absl-py = callPackage ../development/python-modules/absl-py { }; + accessible-pygments = callPackage ../development/python-modules/accessible-pygments { }; + accuweather = callPackage ../development/python-modules/accuweather { }; accupy = callPackage ../development/python-modules/accupy { }; From 23f105f5a2c14d42420c10f69baf1fd648edb4eb Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 21 Feb 2023 04:20:00 +0000 Subject: [PATCH 2/3] python310Packages.pydata-sphinx-theme: 0.12.0 -> 0.13.0rc4 --- .../python-modules/pydata-sphinx-theme/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pydata-sphinx-theme/default.nix b/pkgs/development/python-modules/pydata-sphinx-theme/default.nix index b828120a309c..a2a2a348a73d 100644 --- a/pkgs/development/python-modules/pydata-sphinx-theme/default.nix +++ b/pkgs/development/python-modules/pydata-sphinx-theme/default.nix @@ -3,6 +3,7 @@ , pythonOlder , fetchPypi , sphinx +, accessible-pygments , beautifulsoup4 , docutils , packaging @@ -10,7 +11,7 @@ buildPythonPackage rec { pname = "pydata-sphinx-theme"; - version = "0.12.0"; + version = "0.13.0rc4"; format = "wheel"; @@ -21,17 +22,20 @@ buildPythonPackage rec { dist = "py3"; python = "py3"; pname = "pydata_sphinx_theme"; - sha256 = "sha256-wX26tno3dPBvNPY3jolvzQZozItdocG6AX5lzx3wr1g="; + sha256 = "sha256-tLkCMX/LvFxYPOskW2LXHkfHggsG/CIo41W3BF1Zvpc="; }; propagatedBuildInputs = [ sphinx + accessible-pygments beautifulsoup4 docutils packaging ]; - pythonImportsCheck = [ "pydata_sphinx_theme" ]; + pythonImportsCheck = [ + "pydata_sphinx_theme" + ]; meta = with lib; { description = "Bootstrap-based Sphinx theme from the PyData community"; From 23ed00b4bf739a9d87a91d0bd58376164c758874 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 21 Feb 2023 04:20:00 +0000 Subject: [PATCH 3/3] python310Packages.sphinx-book-theme: 0.4.0rc1 -> 1.0.0rc2 https://github.com/executablebooks/sphinx-book-theme/releases/tag/v1.0.0rc1 https://github.com/executablebooks/sphinx-book-theme/releases/tag/v1.0.0rc2 --- .../python-modules/sphinx-book-theme/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/sphinx-book-theme/default.nix b/pkgs/development/python-modules/sphinx-book-theme/default.nix index 6c5597755a36..12a5878024b8 100644 --- a/pkgs/development/python-modules/sphinx-book-theme/default.nix +++ b/pkgs/development/python-modules/sphinx-book-theme/default.nix @@ -5,11 +5,12 @@ , sphinx , pydata-sphinx-theme , pyyaml +, jupyter-book }: buildPythonPackage rec { pname = "sphinx-book-theme"; - version = "0.4.0rc1"; + version = "1.0.0rc2"; format = "wheel"; @@ -20,7 +21,7 @@ buildPythonPackage rec { dist = "py3"; python = "py3"; pname = "sphinx_book_theme"; - sha256 = "bfad8ef469885da5633f7cf7f8cd9a0ae11ea2351a91e507b44cf15973934512"; + sha256 = "43977402f55b79706e117c6de6f50e67dac6dad698eb9b75be07dc2e6a689bde"; }; propagatedBuildInputs = [ @@ -29,7 +30,13 @@ buildPythonPackage rec { pyyaml ]; - pythonImportsCheck = [ "sphinx_book_theme" ]; + pythonImportsCheck = [ + "sphinx_book_theme" + ]; + + passthru.tests = { + inherit jupyter-book; + }; meta = with lib; { description = "A clean book theme for scientific explanations and documentation with Sphinx";