python3Packages.readability-lxml: run tests
This commit is contained in:
parent
26e554d7a4
commit
2c5a0e07a9
1 changed files with 11 additions and 5 deletions
|
@ -1,19 +1,22 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, chardet
|
||||
, cssselect
|
||||
, lxml
|
||||
, timeout-decorator
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "readability-lxml";
|
||||
version = "0.8.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-5R/qVrWQmq+IbTB9SOeeCWKTJVr6Vnt9CLypTSWxpOE=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "buriy";
|
||||
repo = "python-readability";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-MKdQRety24qOG9xgIdaCJ72XEImP42SlMG6tC7bwzo4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ chardet cssselect lxml ];
|
||||
|
@ -22,7 +25,10 @@ buildPythonPackage rec {
|
|||
substituteInPlace setup.py --replace 'sys.platform == "darwin"' "False"
|
||||
'';
|
||||
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
timeout-decorator
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast python port of arc90's readability tool";
|
||||
|
|
Loading…
Reference in a new issue