1{
2 lib,
3 stdenv,
4 blessed,
5 buildPythonPackage,
6 cwcwidth,
7 fetchPypi,
8 pyte,
9 pytestCheckHook,
10 pythonOlder,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "curtsies";
16 version = "0.4.3";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-ECoP+/lSEk8b4iL9aYnaTsfM4E5J9hMAnl9UrTdhiCU=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [
29 blessed
30 cwcwidth
31 ];
32
33 nativeCheckInputs = [
34 pyte
35 pytestCheckHook
36 ];
37
38 meta = with lib; {
39 description = "Curses-like terminal wrapper, with colored strings";
40 homepage = "https://github.com/bpython/curtsies";
41 changelog = "https://github.com/bpython/curtsies/blob/v${version}/CHANGELOG.md";
42 license = licenses.mit;
43 maintainers = with maintainers; [ flokli ];
44 broken = stdenv.hostPlatform.isDarwin;
45 };
46}