Add python-shxparser

Evgeny PisemskySat Jan 11 15:55:01+0300 2025

af6472b

Add python-shxparser

modules/cogd/packages/python-xyz.scm unknown status 1

1+
;;; SPDX-FileCopyrightText: 2025 Evgeny Pisemsky <mail@pisemsky.site>
2+
;;;
3+
;;; SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
(define-module (cogd packages python-xyz))
6+
7+
(use-modules (guix packages)
8+
             (guix download)
9+
             (guix build-system python)
10+
             (guix build-system pyproject)
11+
             ((guix licenses) #:prefix license:)
12+
             (gnu packages python-xyz)
13+
             (gnu packages python-build))
14+
15+
(define-public python-shxparser
16+
  (package
17+
    (name "python-shxparser")
18+
    (version "0.0.2")
19+
    (source
20+
     (origin
21+
       (method url-fetch)
22+
       (uri (pypi-uri "shxparser" version))
23+
       (sha256
24+
        (base32 "0w7j5ywskandp91v74966pw1pvq9d5zrx5gkjcn84xi8wsyf8hc5"))))
25+
    (build-system pyproject-build-system)
26+
    (native-inputs (list python-svgelements python-setuptools python-wheel))
27+
    (home-page "https://github.com/tatarize/shxparser")
28+
    (synopsis "SHX line font parser")
29+
    (description
30+
     "This is a pure python parser for SHX Hershey font files that are an
31+
AutoCad format which can encode single line fonts.  This format is
32+
used for many CNC and laser operations.")
33+
    (license license:expat)))