python.pkgs.tidylib: 0.2.4 -> 0.3.2

fixes #44581

+35 -31
+34
pkgs/development/python-modules/pytidylib/default.nix
··· 1 + { stdenv, buildPythonPackage, fetchPypi, python, html-tidy }: 2 + 3 + buildPythonPackage rec { 4 + pname = "pytidylib"; 5 + version = "0.3.2"; 6 + 7 + src = fetchPypi { 8 + inherit pname version; 9 + sha256 = "22b1c8d75970d8064ff999c2369e98af1d0685417eda4c829a5c9f56764b0af3"; 10 + }; 11 + 12 + postPatch = '' 13 + # Patch path to library 14 + substituteInPlace tidylib/tidy.py \ 15 + --replace "load_library(name)" \ 16 + "load_library('${html-tidy}/lib/libtidy${stdenv.hostPlatform.extensions.sharedLibrary}')" 17 + 18 + # Test fails 19 + substituteInPlace tests/test_docs.py \ 20 + --replace " def test_large_document(self):" \ 21 + $' @unittest.skip("")\n def test_large_document(self):' 22 + ''; 23 + 24 + checkPhase = '' 25 + ${python.interpreter} -m unittest discover 26 + ''; 27 + 28 + meta = with stdenv.lib; { 29 + description = "Python wrapper for HTML Tidy (tidylib) on Python 2 and 3"; 30 + homepage = https://countergram.github.io/pytidylib/; 31 + license = licenses.mit; 32 + maintainers = with maintainers; [ layus ]; 33 + }; 34 + }
+1 -31
pkgs/top-level/python-packages.nix
··· 12624 12624 12625 12625 thespian = callPackage ../development/python-modules/thespian { }; 12626 12626 12627 - tidylib = buildPythonPackage rec { 12628 - version = "0.2.4"; 12629 - name = "pytidylib-${version}"; 12630 - 12631 - propagatedBuildInputs = [ pkgs.html-tidy ]; 12632 - 12633 - src = pkgs.fetchurl { 12634 - url = "mirror://pypi/p/pytidylib/pytidylib-${version}.tar.gz"; 12635 - sha256 = "0af07bd8ebd256af70ca925ada9337faf16d85b3072624f975136a5134150ab6"; 12636 - }; 12637 - 12638 - # Judging from SyntaxError in tests 12639 - disabled = isPy3k; 12640 - 12641 - checkPhase = '' 12642 - ${python.interpreter} -m unittest discover 12643 - ''; 12644 - 12645 - # Bunch of tests fail 12646 - # https://github.com/countergram/pytidylib/issues/13 12647 - doCheck = false; 12648 - 12649 - patchPhase = '' 12650 - sed -i 's#load_library(name)#load_library("${pkgs.html-tidy}/lib/libtidy.so")#' tidylib/__init__.py 12651 - ''; 12652 - 12653 - meta = { 12654 - homepage = " http://countergram.com/open-source/pytidylib/"; 12655 - maintainers = with maintainers; [ layus ]; 12656 - }; 12657 - }; 12627 + tidylib = callPackage ../development/python-modules/pytidylib { }; 12658 12628 12659 12629 tilestache = self.buildPythonPackage rec { 12660 12630 name = "tilestache-${version}";