aboutsummaryrefslogtreecommitdiff
path: root/battering/packages/osint.scm
blob: 91868bd691daa0fbc1c37ee898190f77fcbdc520 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
(define-module (battering packages osint)
  #:use-module (guix build-system python)
  #:use-module (guix build-system pyproject)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix gexp)
  #:use-module (gnu packages python-build)
  #:use-module (gnu packages python-xyz)
  #:use-module (gnu packages python-web)
  #:use-module (gnu packages python-crypto)
  #:use-module (gnu packages xml)
  #:use-module ((guix licenses)
                #:prefix license:))

(define-public python-linkedin-api
  (package
    (name "python-linkedin-api")
    (version "2.3.1")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "linkedin_api" version))
       (sha256
        (base32 "1169xkkpl1sw9vqq52pc4l14hjdhp8gvdmjmdj7f8jd080205aq7"))))
    (build-system pyproject-build-system)
    (native-inputs (list python-setuptools
                         python-wheel))
    (propagated-inputs (list python-requests
                             python-beautifulsoup4))
    (arguments '(#:tests? #f ;; TODO: fix tests and poetry
                 #:build-backend "setuptools.build_meta"))
    (home-page "https://github.com/tomquirk/linkedin-api")
    (synopsis "LinkedIn API for Python")
    (description "@code{LinkedIn} API for Python.")
    (license license:expat)))

(define-public python-twikit
  (package
    (name "python-twikit")
    (version "2.2.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "twikit" version))
       (sha256
        (base32 "0apmz8iw2pv3cicignd41sgr5zy2bbyj9c76j5hw43h7rhgj5jgs"))))
    (build-system pyproject-build-system)
    (native-inputs (list python-setuptools
                         python-wheel))
    (propagated-inputs (list python-beautifulsoup4 python-filetype
                             python-httpx python-lxml python-pyotp
                             python-requests))
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-after 'unpack 'fix-httpx
                 (lambda _
                   ;; TODO -- remove this hacky fix once httpx is
                   ;; version-bumped in Guix.
                   (substitute* "twikit/client/client.py"
                     (("AsyncClient\\(proxy=proxy, ") "AsyncClient(")))))))
    (home-page "https://github.com/d60/twikit")
    (synopsis "Twitter API wrapper for python with **no API key required**.")
    (description
     "Twitter API wrapper for python with **no API key required**.")
    (license license:expat)))