nixpkgs/pkgs/development/python-modules/cleo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1014 B
Nix
Raw Normal View History

2022-09-14 02:10:54 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, crashtest
, poetry-core
, pytest-mock
, pytestCheckHook
, rapidfuzz
2022-09-14 02:10:54 +00:00
}:
2019-01-07 17:13:19 +00:00
buildPythonPackage rec {
pname = "cleo";
version = "2.0.1";
2022-09-14 02:10:54 +00:00
format = "pyproject";
2019-01-07 17:13:19 +00:00
2022-09-14 02:10:54 +00:00
src = fetchFromGitHub {
owner = "python-poetry";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-y9PYlGSPLpZl9Ad2AFuDKIopH0LRETLp35aiZtLcXzM=";
2019-01-07 17:13:19 +00:00
};
2022-09-14 02:10:54 +00:00
nativeBuildInputs = [
poetry-core
];
2019-01-07 17:13:19 +00:00
propagatedBuildInputs = [
2022-09-14 02:10:54 +00:00
crashtest
rapidfuzz
2019-01-07 17:13:19 +00:00
];
2022-09-14 02:10:54 +00:00
pythonImportsCheck = [
"cleo"
"cleo.application"
"cleo.commands.command"
"cleo.helpers"
];
nativeCheckInputs = [
2022-09-14 02:10:54 +00:00
pytest-mock
pytestCheckHook
];
2019-01-07 17:13:19 +00:00
meta = with lib; {
2022-09-14 02:10:54 +00:00
homepage = "https://github.com/python-poetry/cleo";
changelog = "https://github.com/python-poetry/cleo/blob/${src.rev}/CHANGELOG.md";
2019-01-07 17:13:19 +00:00
description = "Allows you to create beautiful and testable command-line interfaces";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}