From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wOemHxM9SGOGOQEAbAwnHQ (envelope-from ) for ; Thu, 13 Oct 2022 18:30:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id CBidHxM9SGPA6wAAauVa8A (envelope-from ) for ; Thu, 13 Oct 2022 18:30:11 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C509D3BA1D for ; Thu, 13 Oct 2022 18:30:10 +0200 (CEST) Received: from localhost ([::1]:53666 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oj15w-0003nr-SK for larch@yhetil.org; Thu, 13 Oct 2022 12:30:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj0wt-0002xU-Do for help-guix@gnu.org; Thu, 13 Oct 2022 12:20:44 -0400 Received: from koszko.org ([93.95.227.159]:46560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj0wp-0003v6-Tf for help-guix@gnu.org; Thu, 13 Oct 2022 12:20:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=gK2xfo6NrgRoCBPjp62f5RuNRwTzU8aNSY13DTFpu2M=; b=VfntUEcF1R8ldUMxb4JoxCvK7I sweFemk7vAmc8yCNs/RPP97/sD3VOaCb8Mc3lsIUWnbR3rppVw1PXsUeEyUzc18w5LM76ZXu3zmP/ Bb71FhbYNkv7ZWhiaOTQaob1wbYRJDbtOeUHXj+oAw+yaOqf7e++NQE9Y0YVyvitxm6YDD875UxNe Jc6aAPxbR8Qe6z8P7TG4zwyxX66ZOhilVzGcSuxAxBMO7LodEg8V37/jqaBqeHcU0WP/iw6fIXAwd XPTpUvUja3HgCRLyTh0ib17VlpjCWGaIZK8SaIfvIuQWrenuLR2OLLBiRRTgz5Q3VGnqNkrCB8Mzp cOX+kVzRPBzSre+L3pCV/1JFkSt/4KHZY4OCuho+/xrhRKr4m7Z1711VFqwbEsYv9HLROara7Rx+j OnaMtNICzOkRjMWjTWlrjKQJ30FHvFAVsRqIi/uxl0GFeeneGKgZFeVUbwiVJMsyrLgXxR2AjHl00 T2/Cw6/aNyIELbhkqWlhbkuyDxoUVt05g6ig94uRBNtl6aMrKeEBc6xiFHydXSWOn4hAI41mlGStz kOK3M3EmuWVjzBWqZL5PgF6bV5U3bWD/1i/Tuin1yClh3k14rLMW8KmkMxWD1UQH6+e47hDlvHLnL 9lTHC50qaFqHAnKlU1pHbTHOO4Rvt6+jIrdY7p21c=; Received: from [77.252.47.255] (helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oj0wg-0003Kk-64; Thu, 13 Oct 2022 18:20:30 +0200 Date: Thu, 13 Oct 2022 18:20:27 +0200 To: zimoun Cc: help-guix@gnu.org Subject: Re: program prepared with `guix pack` unusable by end users Message-ID: <20221013182027.2044d8ff@koszkonutek-tmp.pl.eu.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/Ky8kL4q/YOBZFwPpN30lkFS"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" Reply-to: Wojtek Kosior From: Wojtek Kosior via X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665678610; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gK2xfo6NrgRoCBPjp62f5RuNRwTzU8aNSY13DTFpu2M=; b=VCxtVG+91hHIN+qTnUk2+gJIMUfOHiRkR3SqIyj4+fxMEnFuRBaJSUUy6VLm4+MfjrDwqm OFoqdFeQxWzeks+Gq9RwEBvdqrkVIpkKQyddsu/78uBjVRxjM+0pJ3/wq66LwKGJIateGq nlHWd2q54nv+SHcrDMfBKjdL24f/wOEFBsz8Virnjo/HbuhjQzfY6mz5tVdx/SplTiE6p8 nTue2gBcJMPPeohLIBtN53EvB4mmHx4AwrZRsnnBCJA+fRjPt4sbA4RMnYdRmoCIttwaYl Rrk9qTpKtDdAXn9Mj0ASUNmHeO4HiCfocn1hdfgg8n0NOZzDQSi0K5Ptnmsxew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665678610; a=rsa-sha256; cv=none; b=FGXRCtahxHBeiT0/nSuwkB/85YhY9S8OfqjDZbPVIUUirP1qrPt0cvBJcZtuvlPXy38jNN Riqr/4xrRt6PiXB35WEgglsPfhrZMerbGA0iaorIeAidjQo7CrSQa2dFUi9TN1WvB4wIeC A/JaCsi82h0uvjUcpL2jkBx++uO0RbMLavuNUcJdsfRF3qWx2uPWQjRvY5aUgbS/2wNdKt 6SUj2dbLrS6fIFMj1M7QXYMwqoSnYSVAR8yEzTqeG4zoxLuwe3DarTCMx66xFctMysy/vf 6imkH55otwJhS/qrYJngFXiDFQpv8VTlCS49x3T/2udDoOtnNW9D8T88ism+iw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=VfntUEcF; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=VfntUEcF; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C509D3BA1D X-Spam-Score: -2.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: w5SiFuQx52fG --Sig_/Ky8kL4q/YOBZFwPpN30lkFS Content-Type: multipart/mixed; boundary="MP_/X2Ynd6lYHXFbzzkpuRhav9R" --MP_/X2Ynd6lYHXFbzzkpuRhav9R Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Simon, thanks for your response > Is it related to the message [1] you are answering? >=20 > 1: >=20 > If no, please start a new thread when it is a new topic. :-) It took me a couple of minutes to understand what you're talking about. Ind= eed, instead of copy-pasting the address I clicked "Rep= ly" on some random email from Guix mailing list and changed the subject. Fo= r years I've been certain that messages are categorized into threads by the= ir subject. Now, as you wrote this, I assume there must be some thread meta= -data that is invisibly sent by our user agents when we use "Reply" or "Rep= ly all". Who would have thought? In the past, when I saw email software nicely prese= nt thread emails as a tree of responses, I was thinking "wow, this program = must be using some really successful heuristic for determining what is the = response to what". Lol Doing as you requested. Although this is suboptimal as well since now the topic is split between 2 threads :/ > Why do you pack =E2=80=99hydrilla-dist-tarball=E2=80=99 instead of just = =E2=80=99hydrilla=E2=80=99. >=20 > Guix should take care of everything; not necessary when packing a > Python bundle as you are doing. It's ok, `hydrilla-dist-tarball` refers to a package that is built in the package in the normal Guix way. The name just indicates that tarball generated under `./dist/` is used instead of the project file tree. If you're curious, I explain the crazy details in my previous email response to "(". It sometimes happens that to keep my message concise I write what seems to be the most important and attach links to other stuff that the reader can look at to understand everything. Here that "stuff" was the project repo which contains hydrilla.scm with both package definitions. And most of the time I learn that I failed to be clear enough and that people don't have time to read my links. Well, I'm sorry for the confusion. Although I'm starting to lose hope that I will learn to communicate with ppl online without so many misunderstandings :/ The hydrilla.scm that I was loading with `-L .` is now attached. Is there anything wrong in it? Best, Wojtek -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #4: blessed Bronis=C5=82aw Markiewicz Poznaj =C5=9Bwi=C4=99tych krakowskich! #4: b=C5=82ogos=C5=82awiony Bronis= =C5=82aw Markiewicz https://pl.wikipedia.org/wiki/Bronis=C5=82aw_Markiewicz -- (sig_end) --MP_/X2Ynd6lYHXFbzzkpuRhav9R Content-Type: text/x-scheme Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=hydrilla.scm ;; SPDX-License-Identifier: CC0-1.0 ;; Copyright (C) 2022 Wojtek Kosior ;; ;; Available under the terms of Creative Commons Zero v1.0 Universal. (define-module (hydrilla)) (use-modules (ice-9 rdelim) (ice-9 regex)) (define %source-dir (dirname (current-filename))) ;; The PKG-INFO file is generated when running `python3 -m build -s` or sim= ilar. ;; It is also automatically included in the generated tarballs. (define %hydrilla-version (if (access? "src/hydrilla.egg-info/PKG-INFO" R_OK) (let* ((port (open-input-file "src/hydrilla.egg-info/PKG-INFO")) (process-line (lambda (self-ref) (let ((match-result (string-match "^Version: (.*)" (read-line port)))) (if match-result (match:substring match-result 1) (self-ref self-ref)))))) (process-line process-line)) "unknown")) (use-modules (guix packages) (guix download) (guix git-download) (guix build-system python) (guix gexp) ((guix licenses) #:prefix license:) (gnu packages python-build) (gnu packages python-xyz) (gnu packages python-crypto) (gnu packages compression) (gnu packages python-compression) (gnu packages xdisorg) (gnu packages serialization) (gnu packages protobuf) (gnu packages python-web) (gnu packages check) (gnu packages sphinx) (gnu packages python-check) (gnu packages license) (gnu packages gnupg)) (define-public python-kaitaistruct (package (name "python-kaitaistruct") (version "0.10") (source (origin (method url-fetch) (uri (pypi-uri "kaitaistruct" version)) (sha256 (base32 "0ap5ka51gnc2mc4s1kqqsi6nb6zqv8wsrg17ryxazmkkj7idwi50")))) (build-system python-build-system) (home-page "https://kaitai.io") (native-inputs (list python-wheel)) (synopsis "Declarative parser generator for binary data: runtime library for Pyt= hon") (description "Kaitai Struct is a declarative language used for describing various b= inary data structures, laid out in files or in memory - i.e. binary file formats, network stream packet formats, etc.") (license license:expat))) (define-public python-parver (package (name "python-parver") (version "0.3.1") (source (origin (method url-fetch) (uri (pypi-uri "parver" version)) (sha256 (base32 "1lyzqp8bz0n2kzabzl7k7g7cn90rlnrxjzva2p62gsfc7djy00n9")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'relax-requirements (lambda _ (substitute* "setup.py" (("arpeggio[^']*") "arpeggio")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest"))))))) (propagated-inputs (list python-arpeggio python-attrs python-six)) (native-inputs (list python-hypothesis python-pretend python-pytest)) (home-page "https://github.com/RazerM/parver") (synopsis "Parse and manipulate version numbers") (description "Parver facilitates parsing and manipulation of @url{https://www.python.org/dev/peps/pep-0440/,PEP 440} version numbers.") (license license:expat))) (define-public python-pyopenssl-for-haketilo (let ((base python-pyopenssl)) (package (inherit base) (version "22.0.0") (source (origin (inherit (package-source base)) (uri (pypi-uri "pyOpenSSL" version)) (sha256 (base32 "1gzihw09sqi71lwx97c69hab7w4rbnl6hhfrl6za3i5a4la1n2v6")))) (propagated-inputs (modify-inputs (package-propagated-inputs base) (replace "python-cryptography" python-cryptography-next)))))) (define-public python-urllib3-for-haketilo (let ((base python-urllib3)) (package (inherit base) (propagated-inputs (modify-inputs (package-propagated-inputs base) (replace "python-cryptography" python-cryptography-next) (replace "python-pyopenssl" python-pyopenssl-for-haketilo)))))) (define-public python-requests-for-haketilo (let ((base python-requests)) (package (inherit base) (propagated-inputs (modify-inputs (package-propagated-inputs base) (replace "python-urllib3" python-urllib3-for-haketilo)))))) (define-public python-werkzeug-for-haketilo (let ((base python-werkzeug)) (package (inherit base) (propagated-inputs (modify-inputs (package-propagated-inputs base) (replace "python-requests" python-requests-for-haketilo)))))) (define-public python-flask-for-haketilo (let ((base python-flask)) (package (inherit base) (propagated-inputs (modify-inputs (package-propagated-inputs base) (replace "python-werkzeug" python-werkzeug-for-haketilo)))))) (define-public mitmproxy (package (name "mitmproxy") (version "8.1.1") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/mitmproxy/mitmproxy") (commit (string-append "v" version)))) (sha256 (base32 "0kpzk8ci02vyjg9nqnpnadmgyaxxrpdydgfnm2xmxf1s4rzdcvwx")) (snippet '(begin ;; The player contains some minified JS. It would be possible to= find ;; player sources elsewhere on the internet but there's no point= in ;; doing do since we're not building the docs anyway. (delete-file "docs/src/assets/asciinema-player.js") #t)))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'relax-requirements (lambda _ (substitute* "setup.py" (("kaitaistruct>=3D0\\.7[^\"]*") "kaitaistruct") ;; The ">=3D2.8" req was there because older ldap3 lacked a = crucial ;; ">=3D0.4.8" req for its dep, pyasn. It's not an issue for= Guix ;; which ships with pyasn 4.8 anyway. (("ldap3>=3D2\\.8[^\"]*") "ldap3") (("protobuf>=3D3\\.14,<5") "protobuf") (("sortedcontainers>=3D2\\.3[^\"]*") "sortedcontainers") (("wsproto>=3D1\\.0[^\"]*") "wsproto") (("pytest-timeout[^\"]*<2[^\"]*") "pytest-timeout") (("pytest-asyncio[^\"]*<0.14[^\"]*") "pytest-asyncio")) (substitute* "test/mitmproxy/proxy/layers/http/test_http.py" (("isinstance\\(x, HTTPFlow\\)") "issubclass(type(x), HTTPFlow)")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (setenv "HOME" "/tmp") (invoke "pytest" "--timeout" "60"))))))) (propagated-inputs (list python-asgiref python-blinker python-brotli python-cryptography-next python-flask-for-haketilo python-h11 python-h2 python-hyperframe python-kaitaistruct python-ldap3 python-msgpack python-passlib python-protobuf python-pyopenssl-for-haketilo python-pyparsing python-pyperclip python-ruamel.yaml python-sortedcontainers python-tornado-6 python-urwid python-wsproto python-publicsuffix2 python-zstandard)) (native-inputs (list python-parver python-pytest python-pytest-asyncio python-pytest-timeout)) (home-page "https://mitmproxy.org/") (synopsis "A free interactive HTTPS proxy") (description "An interactive TLS-capable intercepting HTTP proxy for penetration te= sters and software developers. It can be used to intercept, inspect, modify and replay web traffic such as HTTP/1, HTTP/2, WebSockets, or any other SSL/TLS-protected protocols.") (license license:expat))) (define-public python-immutables-for-haketilo (let ((base python-immutables)) (package (inherit base) (version "0.19") (source (origin ;; Old version tarballs seem to be getting deleted from PyPI each = time ;; a new version comes out. (method git-fetch) (uri (git-reference (url "https://github.com/MagicStack/immutables") (commit (string-append "v" version)))) (sha256 (base32 "1awjylp4pl0jknwgnabg7kkj8f8883fkf99spsdrw1pj1acajvy9")))) (arguments `(#:phases (modify-phases %standard-phases (add-after 'unpack 'fix-expected-mypy-types (lambda _ (substitute* "tests/test-data/check-immu.test" (("builtins.str") "builtins.str*")))) (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest"))))))) (native-inputs (list python-pytest python-mypy))))) (define-public python-types-requests (package (name "python-types-requests") (version "2.26.0") (source (origin (method url-fetch) (uri (pypi-uri "types-requests" version)) (sha256 (base32 "10sq8jarr642vhw53k6zbf3hn2b8xfyrckwfngml4fj19g1whpnz")))) (build-system python-build-system) (home-page "https://github.com/python/typeshed") (synopsis "Typing stubs for requests") (description "This package provides a collection of library stubs for Python, with static types.") (license license:asl2.0))) ;; Use this variant when building from a downloaded release tarball. (define-public hydrilla (package (name "hydrilla") (version %hydrilla-version) (source (local-file %source-dir #:recursive? #t)) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? (invoke "pytest"))))))) (propagated-inputs (list mitmproxy python-beautifulsoup4 python-click python-flask-for-haketilo python-gnupg python-html5lib python-immutables-for-haketilo python-itsdangerous python-jsonschema reuse)) (native-inputs (list python-setuptools-scm python-babel python-pytest python-pypa-build python-mypy python-types-requests)) (home-page "https://hydrillabugs.koszko.org/projects/haketilo/wiki") (synopsis "Block JavaScript and add custom logic to web pages") (description "Haketilo HTTP proxy facilitates viewing of websites while having their original JavaScript replaced by user-provided scripts. Haketilo combines the functionalities of content blocker and user script manager. It= can be used with its script repository, Hydrilla.") (license (list license:agpl3+ license:gpl3+ license:cc0)))) ;; Use this variant when building from a tarball generated under dist/. This ;; can be used to build from a git checkout after running `python3 -m build= -s` ;; or similar. (define-public hydrilla-dist-tarball (let ((base hydrilla) (filename (string-append "hydrilla-" %hydrilla-version ".tar.gz"))) (package (inherit base) (source (local-file (string-append %source-dir "/dist/" filename)))))) --MP_/X2Ynd6lYHXFbzzkpuRhav9R-- --Sig_/Ky8kL4q/YOBZFwPpN30lkFS Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY0g6ywAKCRBLxSIcWnn9 GgBQAP9UCLmhCFalP17xW3YHaD3/DLA0OlxAlYXjosbI9wjj2wEA50SjBMjXes4e K3QIIc9MG/7uKFQjZw4V/eFnGQC3lAo= =kudf -----END PGP SIGNATURE----- --Sig_/Ky8kL4q/YOBZFwPpN30lkFS--