From patchwork Mon Feb 28 06:00:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Evgeny Pisemsky X-Patchwork-Id: 617 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 94FED27BBEA; Mon, 28 Feb 2022 06: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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 4EB2C27BBE9 for ; Mon, 28 Feb 2022 06:01:16 +0000 (GMT) Received: from localhost ([::1]:38716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOZ5v-0003BN-Fi for patchwork@mira.cbaines.net; Mon, 28 Feb 2022 01:01:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40884) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOZ5i-0003BD-4S for guix-patches@gnu.org; Mon, 28 Feb 2022 01:01:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nOZ5h-0006Gr-NF for guix-patches@gnu.org; Mon, 28 Feb 2022 01:01:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nOZ5h-0005ve-Jc for guix-patches@gnu.org; Mon, 28 Feb 2022 01:01:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53943] Acknowledgement ([PATCH] Add python-stltools) Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Feb 2022 06:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53943 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53943@debbugs.gnu.org Received: via spool by 53943-submit@debbugs.gnu.org id=B53943.164602803222746 (code B ref 53943); Mon, 28 Feb 2022 06:01:01 +0000 Received: (at 53943) by debbugs.gnu.org; 28 Feb 2022 06:00:32 +0000 Received: from localhost ([127.0.0.1]:59839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOZ5D-0005uo-Ls for submit@debbugs.gnu.org; Mon, 28 Feb 2022 01:00:31 -0500 Received: from sofi-shared.hosting.energy ([146.59.29.125]:56482 helo=sofi.hosting.energy) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nOZ5B-0005uX-7d for 53943@debbugs.gnu.org; Mon, 28 Feb 2022 01:00:30 -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:In-Reply-To: Date:References: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:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5Uk2K6ykZrp/qjUY9W0nHfoLQdPBbdyMEdhAOIZ6588=; b=jcTiCu4annhbcnp/VxwgUk5y33 vPazwSmA0VKtMWPBg42qFAdEuxMqei8qy2GFLT5+NaJC56pXEXho5oI9qCzwzwUZtOcCIwCROHyHs uFUHWFwcMdF4JMDfQzjjdxYYRMGf26DxrnH7XIRrzZhgGgo4u3Py6R75cyA0EVVapduA=; Received: from node-48-168-35-212.domolink.tula.net ([212.35.168.48] 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 1nOZ54-00008q-ID for 53943@debbugs.gnu.org; Mon, 28 Feb 2022 09:00:22 +0300 From: Evgeny Pisemsky References: <875ypli5yr.fsf@pisemsky.com> Date: Mon, 28 Feb 2022 09:00:21 +0300 In-Reply-To: (GNU bug Tracking System's message of "Fri, 11 Feb 2022 19:01:02 +0000") Message-ID: <87tucjmsy2.fsf@pisemsky.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: ClamAV 0.103.0; Mon, 28 Feb 2022 09:00:22 +0300 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 Thank you for suggestions! Here is the updated patch. From 8fec01fed636b43a14230d1a4556d01e8c3cf223 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 | 47 +++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index c05502388e..c981ccb709 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. ;;; @@ -29034,3 +29035,49 @@ (define-public python-types-ujson used by type-checking tools like mypy, PyCharm, pytype etc. to check code that uses ujson.") (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* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "py.test" "-v"))))))) + (propagated-inputs (list python-pycairo)) + (native-inputs (list python-pytest)) + (home-page "https://github.com/rsmith-nl/stltools") + (synopsis "Python modules and scripts for handling STL files") + (description "This package consists of Python modules and scripts for +manipulating stereolithography (STL) files. It can convert STL files into +POV-ray meshes, PDF and PostScript. The Python modules allow for reading and +writing STL files. It supports both the text and binary forms of STL.") + (license license:expat))) base-commit: 61a847187d781bcecdc77fbec1fb75d1b9531e55 -- 2.34.0