Merge pull request #114047 from fabaff/bump-pyquery

This commit is contained in:
Sandro 2021-02-23 14:57:37 +01:00 committed by GitHub
commit 0eca737ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 7 deletions

View File

@ -1,4 +1,6 @@
{ lib, python3Packages, }: { lib
, python3Packages
}:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "addic7ed-cli"; pname = "addic7ed-cli";
@ -14,6 +16,10 @@ python3Packages.buildPythonApplication rec {
pyquery pyquery
]; ];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "addic7ed_cli" ];
meta = with lib; { meta = with lib; {
description = "A commandline access to addic7ed subtitles"; description = "A commandline access to addic7ed subtitles";
homepage = "https://github.com/BenoitZugmeyer/addic7ed-cli"; homepage = "https://github.com/BenoitZugmeyer/addic7ed-cli";

View File

@ -1,14 +1,15 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi
, cssselect , cssselect
, fetchPypi
, lxml , lxml
, webob , pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyquery"; pname = "pyquery";
version = "1.2.9"; version = "1.4.3";
disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -16,15 +17,19 @@ buildPythonPackage rec {
sha256 = "00p6f1dfma65192hc72dxd506491lsq3g5wgxqafi1xpg2w1xia6"; sha256 = "00p6f1dfma65192hc72dxd506491lsq3g5wgxqafi1xpg2w1xia6";
}; };
propagatedBuildInputs = [ cssselect lxml webob ]; propagatedBuildInputs = [
cssselect
lxml
];
# circular dependency on webtest # circular dependency on webtest
doCheck = false; doCheck = false;
pythonImportsCheck = [ "pyquery" ];
meta = with lib; { meta = with lib; {
description = "A jquery-like library for Python";
homepage = "https://github.com/gawel/pyquery"; homepage = "https://github.com/gawel/pyquery";
description = "A jquery-like library for python"; changelog = "https://github.com/gawel/pyquery/blob/${version}/CHANGES.rst";
license = licenses.bsd0; license = licenses.bsd0;
}; };
} }