summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-11-06 10:39:26 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-11-06 10:39:35 +0000
commit2fd304efbc033927c65ead45c2ab681cb0f83e39 (patch)
tree5fd53ad1367b2812e02b4f90a946882db104c4e4 /gnu/packages/python-xyz.scm
parent353effb1509c768cdedb022470c85e21579a8bda (diff)
gnu: python-stltools: Switch to pyproject, refresh style.
* gnu/packages/python-xyz.scm (python-stltools): Use G-Expressions. [build-system]: Switch to pyproject-build-system. [arguments] <phases>: Use default 'check. [native-inputs]: Add python-setuptools. Change-Id: I37a2154270077b7361a2464312038fd2ee62ca5c
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm76
1 files changed, 39 insertions, 37 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7a0b1e9f1a6..c58deff50dc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -35097,46 +35097,48 @@ async I/O support.")
(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)
+ (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 pyproject-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))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: Project lacks correct setup.py, setup.cfg or pyproject.toml.
+ (delete 'build)
+ (replace 'install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((moddir (string-append (site-packages inputs outputs)
+ "/stltools"))
+ (bindir (string-append #$output "/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"))))))))
+ (native-inputs
+ (list python-pytest
+ python-setuptools))
+ (propagated-inputs
+ (list python-pycairo))
(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.")
+ (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)))
(define-public python-multipart