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>
38 lines
862 B
Nix
38 lines
862 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gitlike-commands";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "unixorn";
|
|
repo = "gitlike-commands";
|
|
tag = "v${version}";
|
|
hash = "sha256-Z0l8nCKov1iMJvI3YTHvg0ey+oPju3rgaKtmk6OX44g=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
# Module has no real tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "gitlike_commands" ];
|
|
|
|
meta = {
|
|
description = "Easy python module for creating git-style subcommand handling";
|
|
homepage = "https://github.com/unixorn/gitlike-commands";
|
|
changelog = "https://github.com/unixorn/gitlike-commands/releases/tag/v${version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|