2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, ansicolors
|
2021-02-13 14:23:35 +00:00
|
|
|
, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, coverage
|
2021-02-13 14:23:35 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pytest-cov
|
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, textwrap3
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansiwrap";
|
|
|
|
version = "0.8.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
|
|
|
sha256 = "ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7";
|
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
ansicolors
|
|
|
|
coverage
|
2021-02-13 14:23:35 +00:00
|
|
|
pytest-cov
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
propagatedBuildInputs = [ textwrap3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
pythonImportsCheck = [ "ansiwrap" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Textwrap, but savvy to ANSI colors and styles";
|
|
|
|
homepage = "https://github.com/jonathaneunice/ansiwrap";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|