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>
51 lines
971 B
Nix
51 lines
971 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
colorama,
|
|
editorconfig,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
hypothesis,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
types-colorama,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "beautysh";
|
|
version = "6.4.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lovesegfault";
|
|
repo = "beautysh";
|
|
tag = "v${version}";
|
|
hash = "sha256-wLqysNhkagZ+sphqMC78cLoKvsMJpJCJr16lgvU37JI=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
colorama
|
|
editorconfig
|
|
types-colorama
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
pyyaml
|
|
];
|
|
|
|
pythonImportsCheck = [ "beautysh" ];
|
|
|
|
meta = {
|
|
description = "Tool for beautifying Bash scripts";
|
|
homepage = "https://github.com/lovesegfault/beautysh";
|
|
changelog = "https://github.com/lovesegfault/beautysh/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "beautysh";
|
|
};
|
|
}
|