1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 setuptools,
7 urwid,
8}:
9
10buildPythonPackage rec {
11 pname = "urwidgets";
12 version = "0.2.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "AnonymouX47";
19 repo = "urwidgets";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-ultlfNeCGFTqKaMeXu0+NihkN5/6NtMewk33YfIzhu8=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 propagatedBuildInputs = [ urwid ];
27
28 pythonImportsCheck = [ "urwidgets" ];
29
30 meta = with lib; {
31 description = "Collection of widgets for urwid";
32 homepage = "https://github.com/AnonymouX47/urwidgets";
33 changelog = "https://github.com/AnonymouX47/urwidgets/releases/tag/v${version}";
34 license = licenses.mit;
35 maintainers = with maintainers; [ huyngo ];
36 };
37}