2022-03-03 22:45:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-09-18 01:11:06 +00:00
|
|
|
, setuptools
|
2022-03-03 22:45:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-12-24 04:40:02 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ansi";
|
2022-03-02 21:41:49 +00:00
|
|
|
version = "0.3.6";
|
2022-03-03 22:45:59 +00:00
|
|
|
format = "pyproject";
|
2017-12-24 04:40:02 +00:00
|
|
|
|
2022-03-03 22:45:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tehmaze";
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
hash = "sha256-2gu2Dba3LOjMhbCCZrBqzlOor5KqDYThhe8OP8J3O2M=";
|
2017-12-24 04:40:02 +00:00
|
|
|
};
|
|
|
|
|
2022-09-18 01:11:06 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-03-03 22:45:59 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ansi.colour"
|
|
|
|
"ansi.color"
|
|
|
|
];
|
2018-08-03 12:21:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "ANSI cursor movement and graphics";
|
2020-04-06 13:44:49 +00:00
|
|
|
homepage = "https://github.com/tehmaze/ansi/";
|
2018-08-03 12:21:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2017-12-24 04:40:02 +00:00
|
|
|
}
|