depot/third_party/nixpkgs/pkgs/development/python-modules/clikit/default.nix

52 lines
1 KiB
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";
rev = "refs/tags/${version}";
hash = "sha256-xAsUNhVQBjtSFHyjjnicAKRC3+Tdn3AdGDUYhmOOIdA=";
};
pythonRelaxDeps = [ "crashtest" ];
build-system = [ poetry-core ];
dependencies = [
crashtest
pastel
pylev
];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "clikit" ];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}