mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python313Packages.woob: 3.6 -> 3.7 (#415013)
This commit is contained in:
commit
4ce0d860d3
1 changed files with 17 additions and 22 deletions
|
@ -1,9 +1,8 @@
|
|||
{
|
||||
lib,
|
||||
babel,
|
||||
buildPythonPackage,
|
||||
fetchFromGitLab,
|
||||
fetchpatch,
|
||||
babel,
|
||||
html2text,
|
||||
lxml,
|
||||
packaging,
|
||||
|
@ -20,41 +19,33 @@
|
|||
setuptools,
|
||||
testers,
|
||||
unidecode,
|
||||
termcolor,
|
||||
responses,
|
||||
woob,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "woob";
|
||||
version = "3.6";
|
||||
version = "3.7";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "woob";
|
||||
repo = "woob";
|
||||
rev = version;
|
||||
hash = "sha256-M9AjV954H1w64YGCVxDEGGSnoEbmocG3zwltob6IW04=";
|
||||
tag = version;
|
||||
hash = "sha256-EZHzw+/BIIvmDXG4fF367wsdUTVTHWYb0d0U56ZXwOs=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
name = "no-deprecated-pkg_resources.patch";
|
||||
url = "https://gitlab.com/woob/woob/-/commit/3283c4c1a935cc71acea98b2d8c88bc4bf28f643.patch";
|
||||
hash = "sha256-3bRuv93ivKRxbGr52coO023DlxHZWwUeInXTPqQAeL8=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"packaging"
|
||||
"rich"
|
||||
"requests"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
babel
|
||||
python-dateutil
|
||||
python-jose
|
||||
|
@ -68,9 +59,13 @@ buildPythonPackage rec {
|
|||
requests
|
||||
rich
|
||||
unidecode
|
||||
termcolor
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
responses
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# require networking
|
||||
|
@ -85,12 +80,12 @@ buildPythonPackage rec {
|
|||
version = "v${version}";
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
changelog = "https://gitlab.com/woob/woob/-/blob/${src.rev}/ChangeLog";
|
||||
description = "Collection of applications and APIs to interact with websites";
|
||||
mainProgram = "woob";
|
||||
homepage = "https://woob.tech";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ DamienCassou ];
|
||||
license = lib.licenses.lgpl3Plus;
|
||||
maintainers = with lib.maintainers; [ DamienCassou ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue