diff options
Diffstat (limited to 'pkgs/development/python-modules/mistune/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mistune/default.nix | 14 |
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 2023b478cb8..38e2c21ba66 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; |