1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 colorama,
7 six,
8}:
9
10buildPythonPackage rec {
11 pname = "reprint";
12 version = "0.6.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "Yinzo";
17 repo = "reprint";
18 rev = "${version}";
19 hash = "sha256-99FC12LcvvRRwNAxDSvWo9vRYmieL0JHSaCJqO/UGEs=";
20 };
21
22 postPatch = ''
23 substituteInPlace setup.py \
24 --replace-fail "'backports.shutil_get_terminal_size', " ""
25 '';
26
27 build-system = [
28 setuptools
29 ];
30
31 dependencies = [
32 colorama
33 six
34 ];
35
36 pythonImportsCheck = [
37 "reprint"
38 ];
39
40 meta = {
41 description = "Module for binding variables and refreshing multi-line output in terminal";
42 homepage = "https://github.com/Yinzo/reprint";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [
45 jasonodoom
46 jleightcap
47 ];
48 };
49}