← back to backlog: uberprojekt

use mbake to lint and format all Makefiles

status

Done

type

Task

description

#+begin_src scheme

(use-modules (guix packages)

(guix build-system pyproject)

((guix licenses)

#:prefix license:)

(guix build-system python)

(guix download)

(gnu packages python-build)

(gnu packages python-web)

(guix gexp)

(gnu packages python-xyz))

;; (define-public python-ruff

;; (package

;; (name "python-ruff")

;; (version "0.12.7")

;; (source

;; (origin

;; (method url-fetch)

;; (uri (pypi-uri "ruff" version))

;; (sha256

;; (base32 "0wgcnxl00gv697xp3qrvcwpjasgzlhqjij3jhybdghlb4czikhqz"))))

;; (build-system pyproject-build-system)

;; (home-page "https://docs.astral.sh/ruff")

;; (synopsis

;; "An extremely fast Python linter and code formatter, written in Rust.")

;; (description

;; "An extremely fast Python linter and code formatter, written in Rust.")

;; (license license:expat)))

;; python-ruff

;; (define-public python-maturin

;; (package

;; (name "python-maturin")

;; (version "1.9.3")

;; (source

;; (origin

;; (method url-fetch)

;; (uri (pypi-uri "maturin" version))

;; (sha256

;; (base32 "16znq81kbgbnv78cpgnpj8jcscha81py6blb1crf47hx8z8chyi6"))))

;; (build-system pyproject-build-system)

;; (propagated-inputs (list python-tomli))

;; (native-inputs (list python-setuptools python-setuptools-rust python-tomli

;; python-wheel))

;; (home-page "https://github.com/pyo3/maturin")

;; (synopsis

;; "Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages")

;; (description

;; "Build and publish crates with pyo3, cffi and uniffi bindings as well as rust

;; binaries as python packages.")

;; (license (list license:expat license:asl2.0))))

;; python-maturin

;; (define-public python-mbake

;; (package

;; (name "python-mbake")

;; (version "1.3.1.post1")

;; (source

;; (origin

;; (method url-fetch)

;; (uri (pypi-uri "mbake" version))

;; (sha256

;; (base32 "11dx1xhhybj8hi100bsxyfgyac24m14j6956c36ya6gq3gx99flw"))))

;; (build-system pyproject-build-system)

;; (propagated-inputs (list python-rich python-tomli python-typer))

;; (native-inputs (list python-black

;; python-hatchling

;; python-mypy

;; python-pre-commit

;; python-pytest

;; python-pytest-cov

;; python-ruff

;; python-tomli))

;; (home-page "https://github.com/EbodShojaei/bake")

;; (synopsis "A Python-based Makefile formatter and linter")

;; (description

;; "This package provides a Python-based Makefile formatter and linter.")

;; (license license:expat)))

(define-public python-puccinialin

(package

(name "python-puccinialin")

(version "0.1.5")

(source

(origin

(method url-fetch)

(uri (pypi-uri "puccinialin" version))

(sha256

(base32 "00nnqcvvyn10zxkhgzcfn8czwvdzm0vh5z16plb0dxspccd69dmv"))))

(build-system pyproject-build-system)

(arguments

(list

#:phases

#~(modify-phases %standard-phases

(delete 'check))))

(propagated-inputs (list python-httpx python-platformdirs python-tqdm))

(native-inputs (list python-hatchling))

(home-page "https://github.com/konstin/puccinialin")

(synopsis

"Helper for bootstrapping Rust-based build back-ends for Python")

(description

"This tool helps to install Rust into a temporary directory, allowing

support of Rust-based Python builds. Cargo and rustc are installed into a

cache directory, to avoid modifying the host's environment, and further

activated using a set of environment variables.")

(license (list license:expat license:asl2.0))))

python-puccinialin

uberprojekt-282