about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOTABI Tomoya <tomoya.otabi@gmail.com>2023-10-06 23:15:21 +0900
committerGitHub <noreply@github.com>2023-10-06 23:15:21 +0900
commit29491fcaed7fd0b9949d5a870a0e5c3d99e391ff (patch)
tree4a5c7e5d74357de4117617f29d5abdb88366e0b3
parent45be00cf19458c727ab8908b75fe5cba48047d7e (diff)
parent29704681e47357beb334c343f7a38aa487a2f61b (diff)
downloadnixlib-29491fcaed7fd0b9949d5a870a0e5c3d99e391ff.tar
nixlib-29491fcaed7fd0b9949d5a870a0e5c3d99e391ff.tar.gz
nixlib-29491fcaed7fd0b9949d5a870a0e5c3d99e391ff.tar.bz2
nixlib-29491fcaed7fd0b9949d5a870a0e5c3d99e391ff.tar.lz
nixlib-29491fcaed7fd0b9949d5a870a0e5c3d99e391ff.tar.xz
nixlib-29491fcaed7fd0b9949d5a870a0e5c3d99e391ff.tar.zst
nixlib-29491fcaed7fd0b9949d5a870a0e5c3d99e391ff.zip
Merge pull request #258154 from dotlambda/mistune-3.0.2
python310Packages.mistune: 3.0.1 -> 3.0.2
-rw-r--r--pkgs/development/python-modules/mistune/default.nix14
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/mistune/default.nix b/pkgs/development/python-modules/mistune/default.nix
index 2023b478cb85..38e2c21ba66a 100644
--- a/pkgs/development/python-modules/mistune/default.nix
+++ b/pkgs/development/python-modules/mistune/default.nix
@@ -1,6 +1,6 @@
 { lib
 , buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
 , pytestCheckHook
 , pythonOlder
 , setuptools
@@ -8,15 +8,17 @@
 
 buildPythonPackage rec {
   pname = "mistune";
-  version = "3.0.1";
+  version = "3.0.2";
 
   disabled = pythonOlder "3.7";
 
   format = "pyproject";
 
-  src = fetchPypi {
-    inherit pname version;
-    hash = "sha256-6RIRbBOqCUT53FMNs464j2p3CHqxKPSfhKSPTAXqFjw=";
+  src = fetchFromGitHub {
+    owner = "lepture";
+    repo = "mistune";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-OoTiqJ7hsFP1Yx+7xW3rL+Yc/O2lCMdhBBbaZucyZXM=";
   };
 
   nativeBuildInputs = [
@@ -30,7 +32,7 @@ buildPythonPackage rec {
   pythonImportsCheck = [ "mistune" ];
 
   meta = with lib; {
-    changelog = "https://github.com/lepture/mistune/blob/v${version}/docs/changes.rst";
+    changelog = "https://github.com/lepture/mistune/blob/${src.rev}/docs/changes.rst";
     description = "A sane Markdown parser with useful plugins and renderers";
     homepage = "https://github.com/lepture/mistune";
     license = licenses.bsd3;