(define-module (python-xyz) #:use-module ((guix licenses) :prefix license:) #:use-module (guix packages) #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix build-system go) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix gexp) #:use-module (guix profiles) #:use-module (gnu packages) #:use-module (gnu packages wget) #:use-module (gnu packages musl) #:use-module (gnu packages markup) #:use-module (gnu packages python-web) #:use-module (gnu packages version-control) #:use-module (gnu packages commencement) #:use-module (gnu packages python-graphics) #:use-module (gnu packages python-compression) #:use-module (gnu packages python-check) #:use-module (gnu packages golang) #:use-module (gnu packages golang-build) #:use-module (gnu packages golang-check) #:use-module (gnu packages golang-compression) #:use-module (gnu packages golang-web) #:use-module (gnu packages golang-crypto) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages python-xyz) #:use-module (gnu packages python-build) #:use-module (gnu packages python-science) #:use-module (sherlock) ) (define-public python-getmeajob (package (name "getmeajob") (version "0.1.0") (source (local-file "/home/joybuke/Documents/ComputerScience/Projects/Personal/getmeajob" #:recursive? #t)) (build-system pyproject-build-system) (arguments (list #:tests? #f #:phases #~(modify-phases %standard-phases (delete 'check) (delete 'sanity-check) )) ) (native-inputs (list python-setuptools)) (propagated-inputs (list python-jinja2 python-jobspy )) (home-page "") (synopsis "Job hunting application") (description "Job hunting application.") (license license:agpl3))) (define-public python-jobspy (package (name "python-jobspy") (version "1.1.82") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/cullenwatson/JobSpy") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "00zbph5kkzwclgp0a8f407kb0sxpr8dxa6q7a1x8j16hrqh59fw8")))) (build-system pyproject-build-system) (arguments (list #:tests? #f )) (propagated-inputs (list python-beautifulsoup4 python-markdownify python-numpy python-pandas python-pydantic python-regex python-requests python-tls-client)) (native-inputs (list python-poetry-core)) (home-page "https://github.com/cullenwatson/JobSpy") (synopsis "Job scraper for LinkedIn, Indeed, Glassdoor, ZipRecruiter & Bayt") (description "Job scraper for @code{LinkedIn}, Indeed, Glassdoor, @code{ZipRecruiter} & Bayt.") (license #f))) (define-public python-tls-client (package (name "python-tls-client") (version "1.0.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/FlorianREGAZ/Python-Tls-Client") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "05vq0f8qa9fs7xhhzmg3xjlr61p0c13ra8n4bph3lhz81xygvqfi")))) (build-system pyproject-build-system) (arguments (list #:tests? #f #:phases #~(modify-phases %standard-phases (delete 'sanity-check) ;we're going crazy, since sanity crashes. (add-before 'build 'use-actual-dependency (lambda* (#:key inputs outputs #:allow-other-keys) (let ((tlsclient (string-append (assoc-ref inputs "go-github-com-bogdanfinn-tls-client") "/lib/tls-client-amd64.so" ))) ;(delete-file-recursively "tls_client/dependencies/") ;(mkdir "tls_client/dependencies/") (copy-recursively tlsclient "tls_client/dependencies/tls-client-amd64.so") )) ) ) )) (native-inputs (list python-setuptools go-github-com-bogdanfinn-tls-client)) (home-page "https://github.com/FlorianREGAZ/Python-Tls-Client") (synopsis "Advanced Python HTTP Client.") (description "Advanced Python HTTP Client.") (license license:expat))) (define-public go-github-com-bdandy-go-errors (package (name "go-github-com-bdandy-go-errors") (version "1.2.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bdandy/go-errors") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0fp14wb6zfz5lgifp74qgpms4cwzj0sscgfxvmnribcb0pqj7a2d")))) (build-system go-build-system) (arguments (list #:tests? #f #:import-path "github.com/bdandy/go-errors")) (home-page "https://github.com/bdandy/go-errors") (synopsis "go-errors") (description "Package serrors provides better sentinel errors support.") (license license:expat))) (define-public go-github-com-bdandy-go-socks4 (package (name "go-github-com-bdandy-go-socks4") (version "1.2.3") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bdandy/go-socks4") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1p1l7pw0r0kajmr49cbkyqlgbinq6k56dh8jr10pc2b6i4fvkaqp")) (patches (list (local-file "./contrib/guix/go-github-com-bdandy-go-socks4/remove-unncessary-import.patch"))) )) (build-system go-build-system) (arguments (list #:tests? #f #:tests? #f #:import-path "github.com/bdandy/go-socks4" )) (propagated-inputs (list go-github-com-bdandy-go-errors go-golang-org-x-net)) (home-page "https://github.com/bdandy/go-socks4") (synopsis "go-socks4") (description "Package socks4 implements socks4 and socks4a support for net/proxy Just import `_ \"github.com/bdandy/go-socks4\"` to add `socks4` support.") (license license:expat))) (define-public go-github-com-bogdanfinn-quic-go-utls (package (name "go-github-com-bogdanfinn-quic-go-utls") (version "1.0.9-utls") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bogdanfinn/quic-go-utls") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1crb78a30cv8330vk2lij0z4f26hic2071g2m820q75j7250p95v")))) (build-system go-build-system) (arguments (list #:tests? #f #:go go-1.24 #:import-path "github.com/bogdanfinn/quic-go-utls" )) (propagated-inputs (list go-github-com-bogdanfinn-fhttp go-github-com-bogdanfinn-utls go-github-com-quic-go-qpack go-github-com-stretchr-testify go-go-uber-org-mock go-golang-org-x-crypto go-golang-org-x-net go-golang-org-x-sync go-golang-org-x-sys)) (home-page "https://github.com/bogdanfinn/quic-go-utls") (synopsis "A QUIC implementation in pure Go") (description "quic-go is an implementation of the QUIC protocol (@@url{https://datatracker.ietf.org/doc/html/rfc9000,RFC 9000}, @@url{https://datatracker.ietf.org/doc/html/rfc9001,RFC 9001}, @@url{https://datatracker.ietf.org/doc/html/rfc9002,RFC 9002}) in Go. It has support for HTTP/3 (@@url{https://datatracker.ietf.org/doc/html/rfc9114,RFC 9114}), including QPACK (@@url{https://datatracker.ietf.org/doc/html/rfc9204,RFC 9204}) and HTTP Datagrams (@@url{https://datatracker.ietf.org/doc/html/rfc9297,RFC 9297}).") (license license:expat))) (define-public go-github-com-bogdanfinn-fhttp (package (name "go-github-com-bogdanfinn-fhttp") (version "0.6.8") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bogdanfinn/fhttp") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1ba911xllf0ic9hi21liwxa5fb5fl7938zi1ss98ljl0x58irlap")))) (build-system go-build-system) (arguments (list #:tests? #f #:tests? #f #:import-path "github.com/bogdanfinn/fhttp")) (propagated-inputs (list go-github-com-andybalholm-brotli go-github-com-bogdanfinn-utls go-github-com-klauspost-compress go-golang-org-x-net go-golang-org-x-term)) (home-page "https://github.com/bogdanfinn/fhttp") (synopsis #f) (description #f) (license #f))) (define-public go-github-com-bogdanfinn-utls (package (name "go-github-com-bogdanfinn-utls") (version "1.7.7-barnius") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bogdanfinn/utls") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "104c6w1hwna6yfz2ywii142w042dnazn1rss1yqr5lpz2sy8f5z4")))) (build-system go-build-system) (arguments (list #:tests? #f #:import-path "github.com/bogdanfinn/utls")) (propagated-inputs (list go-github-com-andybalholm-brotli go-github-com-cloudflare-circl go-github-com-klauspost-compress go-github-com-quic-go-quic-go go-golang-org-x-crypto go-golang-org-x-net go-golang-org-x-sys)) (home-page "https://github.com/bogdanfinn/utls") (synopsis "uTLS") (description "Copyright 2022 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.") (license license:bsd-3))) (define-public go-github-com-bogdanfinn-websocket (package (name "go-github-com-bogdanfinn-websocket") (version "1.5.5-barnius") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bogdanfinn/websocket") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0awlfnniybarz07zbsl02gmnlcis5lza2w2l80c8sszsgnfxzx6w")))) (build-system go-build-system) (arguments (list #:tests? #f #:import-path "github.com/bogdanfinn/websocket")) (propagated-inputs (list go-github-com-bogdanfinn-fhttp go-github-com-bogdanfinn-utls go-golang-org-x-net)) (home-page "https://github.com/bogdanfinn/websocket") (synopsis "Gorilla WebSocket") (description "Package websocket implements the @code{WebSocket} protocol defined in @@url{https://rfc-editor.org/rfc/rfc6455.html,RFC 6455}.") (license license:bsd-2))) (define-public go-github-com-tam7t-hpkp (package (name "go-github-com-tam7t-hpkp") (version "0.0.0-20160821193359-2b70b4024ed5") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/tam7t/hpkp") (commit (go-version->git-ref version)))) (file-name (git-file-name name version)) (sha256 (base32 "1z0jnjbs3b6jz2b6qcsx3cq6k2ic87h9aqbqvymlhypmmc4n9rav")))) (build-system go-build-system) (arguments (list #:tests? #f #:import-path "github.com/tam7t/hpkp")) (home-page "https://github.com/tam7t/hpkp") (synopsis "hpkp") (description "Library for performing certificate pin validation for golang applications.") (license license:expat))) (define-public go-github-com-bogdanfinn-tls-client (package (name "go-github-com-bogdanfinn-tls-client") (version "1.14.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/bogdanfinn/tls-client") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0n6nlykdwjvnqhxr2hazl4538xdmq0sjsq2fvxgbhpbvjxaarzib")))) (build-system go-build-system) (arguments (list #:tests? #f #:import-path "github.com/bogdanfinn/tls-client" #:phases #~(modify-phases %standard-phases ;(add-before 'build 'fix-gomod ; (lambda* (#:key inputs outputs source #:allow-other-keys) ; (substitute* "go.mod" ( ("github.com/bogdanfinn/tls-client") (source) )) ; ) ; ) (replace 'build (lambda* (#:key inputs outputs source #:allow-other-keys) ;(invoke "go" "build" "-buildmode=c-shared" "-o" (string-append "/lib/tls-client-amd64.so") "github.com/bogdanfinn/tls-client") (with-directory-excursion "src/github.com/bogdanfinn/tls-client/cffi_dist" (invoke "go" "build" "-buildmode=c-shared" "-buildvcs=false" "-o" (string-append (assoc-ref outputs "out") "/lib/tls-client-amd64.so")) ) ) ) ) )) (propagated-inputs (list go-github-com-bdandy-go-socks4 go-github-com-bogdanfinn-fhttp go-github-com-bogdanfinn-quic-go-utls go-github-com-bogdanfinn-utls go-github-com-bogdanfinn-websocket go-github-com-google-uuid go-github-com-stretchr-testify go-github-com-tam7t-hpkp go-golang-org-x-net go-golang-org-x-text)) (home-page "https://github.com/bogdanfinn/tls-client") (synopsis "TLS-Client") (description "This TLS Client is built upon @@url{https://github.com/Carcraftz/fhttp,https://github.com/Carcraftz/fhttp} and @@url{https://github.com/Carcraftz/utls,https://github.com/Carcraftz/utls} (@@url{https://github.com/refraction-networking/utls,https://github.com/refraction-networking/utls}). Big thanks to all contributors so far. Sadly it seems that the original repositories from Carcraftz are not maintained anymore.") (license license:bsd-4))) (packages->manifest (list python-getmeajob))