about summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorOTABI Tomoya <tomoya.otabi@gmail.com>2023-11-15 21:03:07 +0900
committerGitHub <noreply@github.com>2023-11-15 21:03:07 +0900
commitc4e178195d7a98f757bf437c7ba281665de02be5 (patch)
treec12370170ece5a3fa72f9b3c521d3a4dc3ef4b3d /pkgs/development
parentcdc9fc87a3be875d258c88184c6b0bff1d7ca3e4 (diff)
parente6e9c06a0234c99996af1e313ebb6af089757f76 (diff)
Merge pull request #263973 from Luflosi/update/python3Packages.sphinxext-opengraph
python3Packages.sphinxext-opengraph: 0.8.2 -> 0.9.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/sphinxext-opengraph/default.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/sphinxext-opengraph/default.nix b/pkgs/development/python-modules/sphinxext-opengraph/default.nix
index dc66c1c44f4eb..85a736bd880c6 100644
--- a/pkgs/development/python-modules/sphinxext-opengraph/default.nix
+++ b/pkgs/development/python-modules/sphinxext-opengraph/default.nix
@@ -11,16 +11,16 @@
 
 buildPythonPackage rec {
   pname = "sphinxext-opengraph";
-  version = "0.8.2";
+  version = "0.9.0";
   format = "setuptools";
 
-  disabled = pythonOlder "3.7";
+  disabled = pythonOlder "3.8";
 
   src = fetchFromGitHub {
     owner = "wpilibsuite";
     repo = "sphinxext-opengraph";
     rev = "refs/tags/v${version}";
-    hash = "sha256-SrZTtVzEp4E87fzisWKHl8iRP49PWt5kkJq62CqXrBc=";
+    hash = "sha256-ZLIxbFgayG+WVvSXu74eZJ/PbSHg6dzkkIr1OBry4DE=";
   };
 
   SETUPTOOLS_SCM_PRETEND_VERSION = version;
@@ -29,15 +29,20 @@ buildPythonPackage rec {
     setuptools-scm
   ];
 
+  passthru.optional-dependencies = {
+    social_cards_generation = [
+      matplotlib
+    ];
+  };
+
   propagatedBuildInputs = [
     sphinx
-    matplotlib
   ];
 
   nativeCheckInputs = [
     pytestCheckHook
     beautifulsoup4
-  ];
+  ] ++ passthru.optional-dependencies.social_cards_generation;
 
   pythonImportsCheck = [ "sphinxext.opengraph" ];