567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
32 lines
720 B
Nix
32 lines
720 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gcodepy";
|
|
version = "0.1.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rmeno12";
|
|
repo = "gcodepy";
|
|
rev = "v${version}";
|
|
hash = "sha256-+amBkwwISPyes8ABdqgCw50Zg5ioDa46WZgQsZZgl+8=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
pythonImportsCheck = [ "gcodepy" ];
|
|
|
|
meta = {
|
|
description = "G-code generator for 3D printers that use Marlin Firmware";
|
|
homepage = "https://github.com/rmeno12/gcodepy";
|
|
changelog = "https://github.com/rmeno12/gcodepy/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ n00b0ss ];
|
|
};
|
|
}
|