From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uDS5IoKyBmIkewAAgWs5BA (envelope-from ) for ; Fri, 11 Feb 2022 20:01:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oIRrH4KyBmIYCgEAauVa8A (envelope-from ) for ; Fri, 11 Feb 2022 20:01:22 +0100 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 1EBA93B6EF for ; Fri, 11 Feb 2022 20:01:17 +0100 (CET) Received: from localhost ([::1]:44704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIbAR-0004G6-Vn for larch@yhetil.org; Fri, 11 Feb 2022 14:01:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIbAE-0004E7-Sn for guix-patches@gnu.org; Fri, 11 Feb 2022 14:01:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38875) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIbAE-0008KM-1K for guix-patches@gnu.org; Fri, 11 Feb 2022 14:01:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIbAE-00061V-19 for guix-patches@gnu.org; Fri, 11 Feb 2022 14:01:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53943] [PATCH] Add python-stltools Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 11 Feb 2022 19:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53943 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53943@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164460604623122 (code B ref -1); Fri, 11 Feb 2022 19:01:01 +0000 Received: (at submit) by debbugs.gnu.org; 11 Feb 2022 19:00:46 +0000 Received: from localhost ([127.0.0.1]:32772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIb9t-00060o-KF for submit@debbugs.gnu.org; Fri, 11 Feb 2022 14:00:46 -0500 Received: from lists.gnu.org ([209.51.188.17]:51562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIb9s-00060h-8L for submit@debbugs.gnu.org; Fri, 11 Feb 2022 14:00:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33208) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIb9r-0003u9-Tn for guix-patches@gnu.org; Fri, 11 Feb 2022 14:00:39 -0500 Received: from sofi-shared.hosting.energy ([146.59.29.125]:53756 helo=sofi.hosting.energy) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIb9p-0008CF-39 for guix-patches@gnu.org; Fri, 11 Feb 2022 14:00:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pisemsky.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:Date:Subject: To:From:Sender:Reply-To:Cc: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=5gSuXeIRWjkO6Qk8FKYkJP+2zqdvCeAHrQg27gnzrBs=; b=ciIJSKaf11oYBNI6I4jH/+ypgx AvUhTeZqfSb/nmqLYdg09EHOPjSvCkRuljxcqh2+b2/fktHPITH3zwygVojKFhyn9bw9Q3CFX93Zh y+0s8yW6zenZR/SStjStgsA9VnjgDvyNsRltl9UJjRuP7DosWshNL/7CmEbDXep53ByY=; Received: from node-172-167-35-212.domolink.tula.net ([212.35.167.172] helo=desktop) by sofi.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1nIb9h-0000xd-Vt for guix-patches@gnu.org; Fri, 11 Feb 2022 22:00:30 +0300 From: Evgeny Pisemsky Date: Fri, 11 Feb 2022 22:00:28 +0300 Message-ID: <875ypli5yr.fsf@pisemsky.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=146.59.29.125; envelope-from=evgeny@pisemsky.com; helo=sofi.hosting.energy 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_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" 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=1644606077; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=5gSuXeIRWjkO6Qk8FKYkJP+2zqdvCeAHrQg27gnzrBs=; b=duRFRuya23u0r5MEN3VZPbow8UkgWDssT12MitqF9ymViZVAxvmzvkaYeDJS3+zFphf2lt 0fQu6RZYVQxiqwCBhLWYfdIa2jc3exETHj0393x+s36K60yebGaVGtNhZnc3tzVLcVKKF6 Jla5YmYUTaLVVNgWqcg9mH3DKjxhvWMaLALSk/7tR5YLaflfNNkNTThhiRxzOV87dDfR/8 SqWeiO6oq3T317Tez0Kru72GzFgMKJOrBCN0esk8kEm/4FuUoxGrG28vk3ORKGMHdQjBzT WBPI9UU0X3j26W0BVbH7vgeNtdshtOBlAvHR8p+t/qqA1YZk0J9FIV4YU6KBHA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644606077; a=rsa-sha256; cv=none; b=EgLsok1b/402K8zpB1ULDb/wRutmAo0KsgncYdlMGQZXQ1yqPWahvgS1+uY0Tm0c1wmfWf IMGAf7dcN7/LsdVjyxNQ2RQwn9cr7u9riVcUpLMCju6AAgzqnJqfslgzb2Ind21hPC90zy kadVXXjPRJrUixfQSnWBjoUyg3UepiBaSaEXO6FfaLvzNvE/J9pHi9QbdXM+jKEC6ujhfA +x1ifrlaEtCP/pL5cqswVPWXUeNhHrb/rfMNGZwpEnmSB3/h2LMvHE5LzcWmUPC4yNJ5VH pSQURaNtOq5eJNPx0KKWg8DCno5fbxvy4h7BZnvvf7RY1pAEXOBSsyE97yhXPg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pisemsky.com header.s=dkim header.b=ciIJSKaf; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.83 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=pisemsky.com header.s=dkim header.b=ciIJSKaf; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1EBA93B6EF X-Spam-Score: -3.83 X-Migadu-Scanner: scn0.migadu.com X-TUID: LAaBZfto4soP --=-=-= Content-Type: text/plain Hello! The source of this package contains custom setup.py script, which does not work with python-build-system, so I just copied files around in package definition, and this seems worked. However, I am not sure if it is an appropriate way of intallation. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-python-stltools.patch Content-Transfer-Encoding: quoted-printable >From c6fcae5568da38a66e67947f6d20d7228923c626 Mon Sep 17 00:00:00 2001 From: Evgeny Pisemsky Date: Fri, 11 Feb 2022 19:55:13 +0300 Subject: [PATCH] gnu: Add python-stltools. * gnu/packages/python-xyz.scm (python-stltools): New variable. --- gnu/packages/python-xyz.scm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 41b60325d2..e72d5baed7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -116,6 +116,7 @@ ;;; Copyright =C2=A9 2021 Greg Hogan ;;; Copyright =C2=A9 2022 John Kehayias ;;; Copyright =C2=A9 2022 Aleksandr Vityazev +;;; Copyright =C2=A9 2022 Evgeny Pisemsky ;;; ;;; This file is part of GNU Guix. ;;; @@ -28933,3 +28934,46 @@ (define-public python-types-dataclasses "This packages provides a collection of library stubs for Python, with static types.") (license license:asl2.0))) + +(define-public python-stltools + (package + (name "python-stltools") + (version "2022.01.20") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rsmith-nl/stltools") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1k6dhszza4lpy46qffaqx5zr70ikfqqysbacy7zabnrvz09fd4rs")))) + (build-system python-build-system) + (arguments + `(#:use-setuptools? #f + #:phases + (modify-phases %standard-phases + (delete 'build) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((moddir (string-append (site-packages inputs outputs) "= /stltools")) + (bindir (string-append (assoc-ref outputs "out") "/bin"= ))) + (copy-recursively "stltools" moddir) + (mkdir-p bindir) + (for-each + (lambda (script) + (let ((source (string-append script ".py")) + (target (string-append bindir "/" script))) + (copy-file source target) + (chmod target #o555))) + '("stl2pov" "stl2ps" "stl2pdf" "stlinfo"))))) + (replace 'check + (lambda _ + (invoke "py.test" "-v")))))) + (propagated-inputs (list python-pycairo)) + (native-inputs (list python-pytest)) + (home-page "https://github.com/rsmith-nl/stltools") + (synopsis "Tools to manipulate STL files") + (description "Python modules and scripts for handling +stereolithography (STL) files.") + (license license:expat))) base-commit: 6baf2177df36bc33e79f1c71198dfe04d242efb2 --=20 2.34.0 --=-=-=--