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