depot/third_party/nixpkgs/pkgs/development/python-modules/woob/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

83 lines
1.2 KiB
Nix

{ lib
, babel
, buildPythonPackage
, fetchFromGitLab
, fetchpatch
, gnupg
, html2text
, libyaml
, lxml
, nose
, packaging
, pillow
, prettytable
, pycountry
, python-dateutil
, pythonOlder
, pyyaml
, requests
, termcolor
, testers
, unidecode
, woob
}:
buildPythonPackage rec {
pname = "woob";
version = "3.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitLab {
owner = "woob";
repo = pname;
rev = version;
hash = "sha256-Yb3AgUSqr9r2TIymiEUIhKThNC7yjQEkhi8GSI9fqNA=";
};
nativeBuildInputs = [
packaging
];
propagatedBuildInputs = [
babel
python-dateutil
gnupg
html2text
libyaml
lxml
packaging
pillow
prettytable
pycountry
pyyaml
requests
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 ];
};
}