2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2022-01-07 04:07:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "decli";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.6.1";
|
|
|
|
format = "pyproject";
|
2022-01-07 04:07:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "woile";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-FZYKNKkQExx/YBn5y/W0+0aMlenuwEctYTL7LAXMZGE=";
|
2022-01-07 04:07:37 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"decli"
|
|
|
|
];
|
2022-01-07 04:07:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Minimal, easy to use, declarative command line interface tool";
|
|
|
|
homepage = "https://github.com/Woile/decli";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/woile/decli/blob/v${version}/CHANGELOG.md";
|
2022-01-07 04:07:37 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|