From unknown Sat Jun 21 05:14:02 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#49236] [PATCH] gnu: add tractor Resent-From: Danial Behzadi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Jun 2021 03:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49236 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49236@debbugs.gnu.org Cc: Danial Behzadi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162476383320391 (code B ref -1); Sun, 27 Jun 2021 03:18:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jun 2021 03:17:13 +0000 Received: from localhost ([127.0.0.1]:48812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxLIE-0005Im-Ao for submit@debbugs.gnu.org; Sat, 26 Jun 2021 23:17:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxLI9-0005Ib-HL for submit@debbugs.gnu.org; Sat, 26 Jun 2021 23:17:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxLI9-00022F-Ay for guix-patches@gnu.org; Sat, 26 Jun 2021 23:17:05 -0400 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:39934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxLI7-0004wS-8N for guix-patches@gnu.org; Sat, 26 Jun 2021 23:17:05 -0400 Received: by mail-qk1-x736.google.com with SMTP id j184so23798178qkd.6 for ; Sat, 26 Jun 2021 20:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rm5XTqQFzNCwdvZdFrirPbHLOT7I+RSqOMfXDMw2io4=; b=a2LZemcgZEWVUTG5uKHprDd64nZqVHFu189Hwbr+E4a/ZSr/EH+gZ+qaPyErqviBwA Jrc/K95HuQbm1toWFkDoPJv9KpYvAeL/8gzpVS0S+tjitoK9ftBy2XwAANp5UQbcJKHE wZ1r+QTWxhyTR2hPMU5GJXAdtTbfP4zGfyvdI7xF88Zp9efAXT7EbRHrPUiYkEP4biHr 70WKmKRHf4j/3LYzrMvjq3BR6C82SnPfUnEj4ke5tnNdLtLK2aQUU919t2Ql0mVVp9UV Y0wA1CDk24HmsnO7FOoa4rvHPB7AQZJ1Cxj7R9Ss83/xqyrn2eupxh4aq4vOWic6A5lM AMwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=rm5XTqQFzNCwdvZdFrirPbHLOT7I+RSqOMfXDMw2io4=; b=P89660OAmuUQHIeg/AFjT8LFj2ghayusOaEqOkasd7g8YNF7Q/ca+ew41RUknXFpjX VgOWbPtP9dIQw9evsVTB1R2gJZZxTsqeeyFP2wOK7ZnybhRlxTGpvfnt4RRHhMRAqzor fScKPrI7CHc3Vu5V4izUk9yodgu+LgVrnmLmdPkq9OsvOXozPDBXoEl7NJIR5j2tl45M fjOa+ElO55OGly4t0FkphvTgdx0vrig9FSy3wKADrrABtFyRGwNrR7cn1tMDLeziaWMM P7gyAgUN6dOW7vxzIy8gdh0BT72XSAyV0pHQ2WMcUoX/kLx2EcNelJtHyAlcZXC+zeGf bRrQ== X-Gm-Message-State: AOAM533AgT8DSCjngX9LdXLdwExEXVYOtwqy/bfEdzJrqopgro+Yp4l0 0c1KTb0XWTCK/mwrCQNkUBAJq2BIAi6xGg== X-Google-Smtp-Source: ABdhPJyg/RTnYdFWZ5FleoVrmxiXWeuQxDGC14el2tifz/KjcKjQI/KoE9Jz8dxxFprhV8iIENT0gw== X-Received: by 2002:a05:620a:1487:: with SMTP id w7mr9791521qkj.128.1624763821587; Sat, 26 Jun 2021 20:17:01 -0700 (PDT) Received: from ThinkPad-T430.lan ([87.247.180.125]) by smtp.googlemail.com with ESMTPSA id f4sm6030458qte.42.2021.06.26.20.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Jun 2021 20:17:01 -0700 (PDT) From: Danial Behzadi Date: Sun, 27 Jun 2021 07:45:58 +0430 Message-Id: <20210627031558.44555-1-dani.behzi@ubuntu.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=dani.behzi@gmail.com; helo=mail-qk1-x736.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) --- gnu/packages/tor.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index b18e057977..2d9aac1924 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2020 Brice Waegeneire ;;; Copyright © 2020 André Batista +;;; Copyright © 2021 Danial Behzadi ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,6 +42,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages pcre) + #:use-module (gnu packages glib) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) @@ -424,3 +426,47 @@ statistics and status reports on: Potential client and exit connections are scrubbed of sensitive information.") (license license:gpl3+))) + +(define-public tractor + (package + (name "tractor") + (version "3.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "traxtor" version)) + (sha256 + (base32 + "0cysxfynsnf5p61m7n6kb58bn1cf81n68clxh5irp44kjshi0q6l")))) + (build-system python-build-system) + (native-inputs + `(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas. + (inputs + `(("python-fire" ,python-fire) + ("python-psutil" ,python-psutil) + ("python-pygobject" ,python-pygobject) + ("python-requests" ,python-requests) + ("python-stem" ,python-stem) + ("python-termcolor" ,python-termcolor))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-man-page + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man1 (string-append out "/share/man/man1"))) + (install-file "tractor/man/tractor.1" man1) + #t))) + (add-after 'install 'install-gschema + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (schemas (string-append out "/share/glib-2.0/schemas"))) + (install-file "tractor/tractor.gschema.xml" schemas) + #t)))))) + (home-page "https://framagit.org/tractor") + (synopsis "Setup an onion routing proxy") + (description + "This package uses Python stem library to provide a connection through +the onion proxy and sets up proxy in user session, so you don't have to mess +up with TOR on your system anymore.") + (license license:gpl3+))) -- 2.31.1 From unknown Sat Jun 21 05:14:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Danial Behzadi Subject: bug#49236: closed (Re: [bug#49236] [PATCH] gnu: add tractor) Message-ID: References: <87eecjzsmw.fsf@nicolasgoaziou.fr> <20210627031558.44555-1-dani.behzi@ubuntu.com> X-Gnu-PR-Message: they-closed 49236 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 49236@debbugs.gnu.org Date: Wed, 30 Jun 2021 08:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1625040242-22220-1" This is a multi-part message in MIME format... ------------=_1625040242-22220-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #49236: [PATCH] gnu: add tractor which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 49236@debbugs.gnu.org. --=20 49236: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49236 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1625040242-22220-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 49236-done) by debbugs.gnu.org; 30 Jun 2021 08:03:28 +0000 Received: from localhost ([127.0.0.1]:56387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyVBw-0005lZ-94 for submit@debbugs.gnu.org; Wed, 30 Jun 2021 04:03:28 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:46729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyVBu-0005lK-Kx for 49236-done@debbugs.gnu.org; Wed, 30 Jun 2021 04:03:27 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D9BA9E0004; Wed, 30 Jun 2021 08:03:19 +0000 (UTC) From: Nicolas Goaziou To: Danial Behzadi Subject: Re: [bug#49236] [PATCH] gnu: add tractor References: <20210627031558.44555-1-dani.behzi@ubuntu.com> Date: Wed, 30 Jun 2021 10:03:19 +0200 In-Reply-To: <20210627031558.44555-1-dani.behzi@ubuntu.com> (Danial Behzadi's message of "Sun, 27 Jun 2021 07:45:58 +0430") Message-ID: <87eecjzsmw.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49236-done Cc: 49236-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, Danial Behzadi writes: > --- > gnu/packages/tor.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 46 insertions(+) I tweaked the commit message, removed the #t at the end of the phases and applied your patch. Thank you. Regards, -- Nicolas Goaziou ------------=_1625040242-22220-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jun 2021 03:17:13 +0000 Received: from localhost ([127.0.0.1]:48812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxLIE-0005Im-Ao for submit@debbugs.gnu.org; Sat, 26 Jun 2021 23:17:13 -0400 Received: from lists.gnu.org ([209.51.188.17]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxLI9-0005Ib-HL for submit@debbugs.gnu.org; Sat, 26 Jun 2021 23:17:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43818) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lxLI9-00022F-Ay for guix-patches@gnu.org; Sat, 26 Jun 2021 23:17:05 -0400 Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736]:39934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lxLI7-0004wS-8N for guix-patches@gnu.org; Sat, 26 Jun 2021 23:17:05 -0400 Received: by mail-qk1-x736.google.com with SMTP id j184so23798178qkd.6 for ; Sat, 26 Jun 2021 20:17:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rm5XTqQFzNCwdvZdFrirPbHLOT7I+RSqOMfXDMw2io4=; b=a2LZemcgZEWVUTG5uKHprDd64nZqVHFu189Hwbr+E4a/ZSr/EH+gZ+qaPyErqviBwA Jrc/K95HuQbm1toWFkDoPJv9KpYvAeL/8gzpVS0S+tjitoK9ftBy2XwAANp5UQbcJKHE wZ1r+QTWxhyTR2hPMU5GJXAdtTbfP4zGfyvdI7xF88Zp9efAXT7EbRHrPUiYkEP4biHr 70WKmKRHf4j/3LYzrMvjq3BR6C82SnPfUnEj4ke5tnNdLtLK2aQUU919t2Ql0mVVp9UV Y0wA1CDk24HmsnO7FOoa4rvHPB7AQZJ1Cxj7R9Ss83/xqyrn2eupxh4aq4vOWic6A5lM AMwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=rm5XTqQFzNCwdvZdFrirPbHLOT7I+RSqOMfXDMw2io4=; b=P89660OAmuUQHIeg/AFjT8LFj2ghayusOaEqOkasd7g8YNF7Q/ca+ew41RUknXFpjX VgOWbPtP9dIQw9evsVTB1R2gJZZxTsqeeyFP2wOK7ZnybhRlxTGpvfnt4RRHhMRAqzor fScKPrI7CHc3Vu5V4izUk9yodgu+LgVrnmLmdPkq9OsvOXozPDBXoEl7NJIR5j2tl45M fjOa+ElO55OGly4t0FkphvTgdx0vrig9FSy3wKADrrABtFyRGwNrR7cn1tMDLeziaWMM P7gyAgUN6dOW7vxzIy8gdh0BT72XSAyV0pHQ2WMcUoX/kLx2EcNelJtHyAlcZXC+zeGf bRrQ== X-Gm-Message-State: AOAM533AgT8DSCjngX9LdXLdwExEXVYOtwqy/bfEdzJrqopgro+Yp4l0 0c1KTb0XWTCK/mwrCQNkUBAJq2BIAi6xGg== X-Google-Smtp-Source: ABdhPJyg/RTnYdFWZ5FleoVrmxiXWeuQxDGC14el2tifz/KjcKjQI/KoE9Jz8dxxFprhV8iIENT0gw== X-Received: by 2002:a05:620a:1487:: with SMTP id w7mr9791521qkj.128.1624763821587; Sat, 26 Jun 2021 20:17:01 -0700 (PDT) Received: from ThinkPad-T430.lan ([87.247.180.125]) by smtp.googlemail.com with ESMTPSA id f4sm6030458qte.42.2021.06.26.20.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Jun 2021 20:17:01 -0700 (PDT) From: Danial Behzadi To: guix-patches@gnu.org Subject: [PATCH] gnu: add tractor Date: Sun, 27 Jun 2021 07:45:58 +0430 Message-Id: <20210627031558.44555-1-dani.behzi@ubuntu.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=dani.behzi@gmail.com; helo=mail-qk1-x736.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit Cc: Danial Behzadi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) --- gnu/packages/tor.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/tor.scm b/gnu/packages/tor.scm index b18e057977..2d9aac1924 100644 --- a/gnu/packages/tor.scm +++ b/gnu/packages/tor.scm @@ -10,6 +10,7 @@ ;;; Copyright © 2020 Vincent Legoll ;;; Copyright © 2020 Brice Waegeneire ;;; Copyright © 2020 André Batista +;;; Copyright © 2021 Danial Behzadi ;;; ;;; This file is part of GNU Guix. ;;; @@ -41,6 +42,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages pcre) + #:use-module (gnu packages glib) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) @@ -424,3 +426,47 @@ statistics and status reports on: Potential client and exit connections are scrubbed of sensitive information.") (license license:gpl3+))) + +(define-public tractor + (package + (name "tractor") + (version "3.10") + (source + (origin + (method url-fetch) + (uri (pypi-uri "traxtor" version)) + (sha256 + (base32 + "0cysxfynsnf5p61m7n6kb58bn1cf81n68clxh5irp44kjshi0q6l")))) + (build-system python-build-system) + (native-inputs + `(("glib:bin" ,glib "bin"))) ; for glib-compile-schemas. + (inputs + `(("python-fire" ,python-fire) + ("python-psutil" ,python-psutil) + ("python-pygobject" ,python-pygobject) + ("python-requests" ,python-requests) + ("python-stem" ,python-stem) + ("python-termcolor" ,python-termcolor))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-man-page + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (man1 (string-append out "/share/man/man1"))) + (install-file "tractor/man/tractor.1" man1) + #t))) + (add-after 'install 'install-gschema + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (schemas (string-append out "/share/glib-2.0/schemas"))) + (install-file "tractor/tractor.gschema.xml" schemas) + #t)))))) + (home-page "https://framagit.org/tractor") + (synopsis "Setup an onion routing proxy") + (description + "This package uses Python stem library to provide a connection through +the onion proxy and sets up proxy in user session, so you don't have to mess +up with TOR on your system anymore.") + (license license:gpl3+))) -- 2.31.1 ------------=_1625040242-22220-1--