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>
53 lines
1012 B
Nix
53 lines
1012 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
crashtest,
|
|
fetchFromGitHub,
|
|
pastel,
|
|
poetry-core,
|
|
pylev,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "clikit";
|
|
version = "0.6.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sdispater";
|
|
repo = "clikit";
|
|
tag = version;
|
|
hash = "sha256-xAsUNhVQBjtSFHyjjnicAKRC3+Tdn3AdGDUYhmOOIdA=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "crashtest" ];
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
crashtest
|
|
pastel
|
|
pylev
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "clikit" ];
|
|
|
|
meta = {
|
|
description = "Group of utilities to build beautiful and testable command line interfaces";
|
|
homepage = "https://github.com/sdispater/clikit";
|
|
changelog = "https://github.com/sdispater/clikit/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ jakewaksbaum ];
|
|
};
|
|
}
|