Merge pull request #111676 from duijf/update-markdown2

authored by

Sandro and committed by
GitHub
64c12484 ec1eac6c

+14 -6
+14 -6
pkgs/development/python-modules/markdown2/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi }: 1 + { lib, buildPythonPackage, fetchFromGitHub, python, pygments }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "markdown2"; 5 - version = "2.3.6"; 5 + version = "2.4.0"; 6 6 7 - src = fetchPypi { 8 - inherit pname version; 9 - extension = "zip"; 10 - sha256 = "08a124043aa0ad36ba2136239547d5011a2b770278abb11a5609611e0040ea05"; 7 + # PyPI does not contain tests, so using GitHub instead. 8 + src = fetchFromGitHub { 9 + owner = "trentm"; 10 + repo = "python-markdown2"; 11 + rev = version; 12 + sha256 = "sha256:03qmf087phpj0h9hx111k4r5pkm48dhb61mqhp1v75gd09k0z79z"; 11 13 }; 14 + 15 + checkInputs = [ pygments ]; 16 + 17 + checkPhase = '' 18 + ${python.interpreter} ./test/test.py 19 + ''; 12 20 13 21 meta = with lib; { 14 22 description = "A fast and complete Python implementation of Markdown";