Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 lxml, 6 unittestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "lxml-html-clean"; 13 version = "0.1.1"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "fedora-python"; 20 repo = "lxml_html_clean"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-vnRsSkhjeDxZ2bYbIe+2D4GjymZWcIVo2LAPuCaYIZo="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ lxml ]; 28 29 nativeCheckInputs = [ unittestCheckHook ]; 30 31 pythonImportsCheck = [ "lxml_html_clean" ]; 32 33 meta = with lib; { 34 description = "Separate project for HTML cleaning functionalities copied from lxml.html.clean"; 35 homepage = "https://github.com/fedora-python/lxml_html_clean/"; 36 changelog = "https://github.com/fedora-python/lxml_html_clean/blob/${version}/CHANGES.rst"; 37 license = licenses.bsd3; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}