]> git.immae.eu Git - perso/Immae/Config/Nix.git/commitdiff
Add woob
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 6 Jun 2021 00:17:53 +0000 (02:17 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 6 Jun 2021 00:17:53 +0000 (02:17 +0200)
environments/immae-eu.nix
pkgs/default.nix
pkgs/woob/default.nix [new file with mode: 0644]

index f54e8766a8f36355ff74a377140e4238f8eeeb47..ca9e5b5da1d9af5ac39357b042c17450c7a77417 100644 (file)
@@ -46,7 +46,7 @@ let
     feh imagemagick tiv graphicsmagick qrcode
 
     # internet browsing
-    w3m lynx links elinks browsh weboob urlview urlscan googler urlwatch
+    w3m lynx links elinks browsh woob urlview urlscan googler urlwatch
 
     # less
     python3Packages.pygments lesspipe highlight sourceHighlight
index 7c120a8f2c9cbdf1855766d662c0528449de3403..f567104c83f61566deffee7acfb1866624fedfe1 100644 (file)
@@ -75,5 +75,6 @@ rec {
   };
 
   fiche = callPackage ./fiche { inherit mylibs; };
+  woob = python3Packages.callPackage ./woob {};
   zrepl = callPackage ./zrepl {};
 }
diff --git a/pkgs/woob/default.nix b/pkgs/woob/default.nix
new file mode 100644 (file)
index 0000000..22928b9
--- /dev/null
@@ -0,0 +1,72 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, isPy27
+, Babel
+, colorama
+, cssselect
+, dateutil
+, feedparser
+, gdata
+, gnupg
+, html2text
+, libyaml
+, lxml
+, mechanize
+, nose
+, pdfminer
+, pillow
+, prettytable
+, pyqt5
+, pyyaml
+, requests
+, simplejson
+, termcolor
+, unidecode
+}:
+
+buildPythonPackage rec {
+  pname = "woob";
+  version = "3.0";
+  disabled = isPy27;
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "09hpxy5zhn2b8li0xjf3zd7s46lawb0315p5mdcsci3bj3s4v1j7";
+  };
+
+  nativeBuildInputs = [ pyqt5 ];
+
+  propagatedBuildInputs = [
+    Babel
+    colorama
+    cssselect
+    dateutil
+    feedparser
+    gdata
+    gnupg
+    html2text
+    libyaml
+    lxml
+    mechanize
+    pdfminer
+    pillow
+    prettytable
+    pyqt5
+    pyyaml
+    requests
+    simplejson
+    termcolor
+    unidecode
+  ];
+
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = "https://woob.tech";
+    description = "Collection of applications and APIs to interact with websites without requiring the user to open a browser";
+    license = licenses.lgpl3Plus;
+    maintainers = [ maintainers.DamienCassou ];
+ };
+}
+