uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
95
pkgs/development/python-modules/woob/default.nix
Normal file
95
pkgs/development/python-modules/woob/default.nix
Normal file
|
|
@ -0,0 +1,95 @@
|
|||
{ lib
|
||||
, babel
|
||||
, buildPythonPackage
|
||||
, colorama
|
||||
, cssselect
|
||||
, feedparser
|
||||
, fetchFromGitLab
|
||||
, gdata
|
||||
, gnupg
|
||||
, google-api-python-client
|
||||
, html2text
|
||||
, libyaml
|
||||
, lxml
|
||||
, mechanize
|
||||
, nose
|
||||
, pdfminer-six
|
||||
, pillow
|
||||
, prettytable
|
||||
, pyqt5
|
||||
, python-dateutil
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, requests
|
||||
, simplejson
|
||||
, termcolor
|
||||
, unidecode
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "woob";
|
||||
version = "3.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "woob";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-XLcHNidclORbxVXgcsHY6Ja/dak+EVSKTaVQmg1f/rw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pyqt5
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
babel
|
||||
colorama
|
||||
cssselect
|
||||
python-dateutil
|
||||
feedparser
|
||||
gdata
|
||||
gnupg
|
||||
google-api-python-client
|
||||
html2text
|
||||
libyaml
|
||||
lxml
|
||||
mechanize
|
||||
pdfminer-six
|
||||
pillow
|
||||
prettytable
|
||||
pyqt5
|
||||
pyyaml
|
||||
requests
|
||||
simplejson
|
||||
termcolor
|
||||
unidecode
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace "with-doctest = 1" "" \
|
||||
--replace "with-coverage = 1" ""
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
nosetests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"woob"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Collection of applications and APIs to interact with websites";
|
||||
homepage = "https://woob.tech";
|
||||
license = licenses.lgpl3Plus;
|
||||
maintainers = with maintainers; [ DamienCassou ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue