57 lines
900 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
emoji,
python-yakh,
questo,
rich,
# nativeCheckInputs
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "beaupy";
version = "3.10.1";
pyproject = true;
src = fetchFromGitHub {
owner = "petereon";
repo = "beaupy";
rev = "v${version}";
hash = "sha256-tN78OV0Ks1MIdqVh8yisTgK4dOaKqYlZxvIoCa44eAI=";
};
build-system = [
poetry-core
];
dependencies = [
emoji
python-yakh
questo
rich
];
pythonImportsCheck = [
"beaupy"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Python library of interactive CLI elements you have been looking for";
homepage = "https://github.com/petereon/beaupy";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ doronbehar ];
};
}