readability-lxml: init at 0.8.1
This commit is contained in:
parent
ae2d6209d5
commit
cd1c866d87
33
pkgs/development/python-modules/readability-lxml/default.nix
Normal file
33
pkgs/development/python-modules/readability-lxml/default.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytestCheckHook
|
||||
, chardet
|
||||
, cssselect
|
||||
, lxml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "readability-lxml";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-5R/qVrWQmq+IbTB9SOeeCWKTJVr6Vnt9CLypTSWxpOE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ chardet cssselect lxml ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace 'sys.platform == "darwin"' "False"
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast python port of arc90's readability tool";
|
||||
homepage = "https://github.com/buriy/python-readability";
|
||||
license = licenses.apsl20;
|
||||
maintainers = with maintainers; [ siraben ];
|
||||
};
|
||||
}
|
@ -8595,6 +8595,8 @@ in {
|
||||
|
||||
re-assert = callPackage ../development/python-modules/re-assert { };
|
||||
|
||||
readability-lxml = callPackage ../development/python-modules/readability-lxml { };
|
||||
|
||||
readchar = callPackage ../development/python-modules/readchar { };
|
||||
|
||||
readlike = callPackage ../development/python-modules/readlike { };
|
||||
|
Loading…
Reference in New Issue
Block a user