nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 888 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 chardet, 8 cssselect, 9 lxml, 10 lxml-html-clean, 11 timeout-decorator, 12}: 13 14buildPythonPackage rec { 15 pname = "readability-lxml"; 16 version = "0.8.4.1"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "buriy"; 21 repo = "python-readability"; 22 rev = "${version}"; 23 hash = "sha256-tL0OnvCrbrpBvcy+6RJ+u/BDdra+MnVT51DSAeYxJbc="; 24 }; 25 26 build-system = [ poetry-core ]; 27 28 pythonRelaxDeps = [ "lxml" ]; 29 30 dependencies = [ 31 chardet 32 cssselect 33 lxml 34 lxml-html-clean 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 timeout-decorator 40 ]; 41 42 meta = { 43 description = "Fast python port of arc90's readability tool"; 44 homepage = "https://github.com/buriy/python-readability"; 45 license = lib.licenses.asl20; 46 maintainers = with lib.maintainers; [ siraben ]; 47 }; 48}