depot/third_party/nixpkgs/pkgs/development/python-modules/woob/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

85 lines
1.2 KiB
Nix

{ lib
, babel
, buildPythonPackage
, fetchFromGitLab
, fetchpatch
, gnupg
, html2text
, libyaml
, lxml
, nose
, packaging
, pillow
, prettytable
, pycountry
, python-dateutil
, pythonOlder
, pyyaml
, requests
, rich
, termcolor
, testers
, unidecode
, woob
}:
buildPythonPackage rec {
pname = "woob";
version = "3.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
owner = "woob";
repo = pname;
rev = version;
hash = "sha256-M9AjV954H1w64YGCVxDEGGSnoEbmocG3zwltob6IW04=";
};
nativeBuildInputs = [
packaging
];
propagatedBuildInputs = [
babel
python-dateutil
gnupg
html2text
libyaml
lxml
packaging
pillow
prettytable
pycountry
pyyaml
requests
rich
termcolor
unidecode
];
nativeCheckInputs = [
nose
];
checkPhase = ''
nosetests
'';
pythonImportsCheck = [
"woob"
];
passthru.tests.version = testers.testVersion {
package = woob;
version = "v${version}";
};
meta = with lib; {
description = "Collection of applications and APIs to interact with websites";
homepage = "https://woob.tech";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ DamienCassou ];
};
}