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>
46 lines
765 B
Nix
46 lines
765 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
six,
|
|
wcwidth,
|
|
pytest,
|
|
mock,
|
|
glibcLocales,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "blessed";
|
|
version = "1.21.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-7Oi7xHWKuRdkUvTjpxnXAIjrVzl5jNVYLJ4F8qKDN+w=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytest
|
|
mock
|
|
glibcLocales
|
|
];
|
|
|
|
# Default tox.ini parameters not needed
|
|
checkPhase = ''
|
|
rm tox.ini
|
|
pytest
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
wcwidth
|
|
six
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/jquast/blessed";
|
|
description = "Thin, practical wrapper around terminal capabilities in Python";
|
|
maintainers = with lib.maintainers; [ eqyiel ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|