From patchwork Fri Feb 11 19:00:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Evgeny Pisemsky X-Patchwork-Id: 37206 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7D4B127BBEA; Fri, 11 Feb 2022 19:01:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BFAF627BBE9 for ; Fri, 11 Feb 2022 19:01:15 +0000 (GMT) Received: from localhost ([::1]:44704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIbAQ-0004G6-Tc for patchwork@mira.cbaines.net; Fri, 11 Feb 2022 14:01:14 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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. 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 © 2021 Greg Hogan ;;; Copyright © 2022 John Kehayias ;;; Copyright © 2022 Aleksandr Vityazev +;;; Copyright © 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 -- 2.34.0