Merge pull request #222370 from DamienCassou/woob-3.3

This commit is contained in:
Damien Cassou 2023-03-21 18:19:23 +01:00 committed by GitHub
commit 0b3b9536bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
, cssselect , cssselect
, feedparser , feedparser
, fetchFromGitLab , fetchFromGitLab
, fetchpatch
, gdata , gdata
, gnupg , gnupg
, google-api-python-client , google-api-python-client
@ -13,6 +14,7 @@
, lxml , lxml
, mechanize , mechanize
, nose , nose
, packaging
, pdfminer-six , pdfminer-six
, pillow , pillow
, prettytable , prettytable
@ -23,12 +25,14 @@
, requests , requests
, simplejson , simplejson
, termcolor , termcolor
, testers
, unidecode , unidecode
, woob
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "woob"; pname = "woob";
version = "3.0"; version = "3.3.1";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -37,10 +41,11 @@ buildPythonPackage rec {
owner = "woob"; owner = "woob";
repo = pname; repo = pname;
rev = version; rev = version;
hash = "sha256-XLcHNidclORbxVXgcsHY6Ja/dak+EVSKTaVQmg1f/rw="; hash = "sha256-aPkMfPRDjPfHIlGDEvorGwk09yQuEWwOkJJUST0vLAs=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
packaging
pyqt5 pyqt5
]; ];
@ -57,6 +62,7 @@ buildPythonPackage rec {
libyaml libyaml
lxml lxml
mechanize mechanize
packaging
pdfminer-six pdfminer-six
pillow pillow
prettytable prettytable
@ -68,11 +74,12 @@ buildPythonPackage rec {
unidecode unidecode
]; ];
postPatch = '' patches = [
substituteInPlace setup.cfg \ (fetchpatch {
--replace "with-doctest = 1" "" \ url = "https://gitlab.com/woob/woob/-/commit/861b1bb92be53998d8174dcca6fa643d1c7cde12.patch";
--replace "with-coverage = 1" "" sha256 = "sha256-IXcE59pMFtPLTOYa2inIvuA14USQvck6Q4hrKZTC0DE=";
''; })
];
nativeCheckInputs = [ nativeCheckInputs = [
nose nose
@ -86,6 +93,11 @@ buildPythonPackage rec {
"woob" "woob"
]; ];
passthru.tests.version = testers.testVersion {
package = woob;
version = "v${version}";
};
meta = with lib; { meta = with lib; {
description = "Collection of applications and APIs to interact with websites"; description = "Collection of applications and APIs to interact with websites";
homepage = "https://woob.tech"; homepage = "https://woob.tech";