Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 726 B view raw
1{ lib, buildPythonPackage, fetchPypi, fetchpatch, six 2, wcwidth, pytest, mock, glibcLocales 3}: 4 5buildPythonPackage rec { 6 pname = "blessed"; 7 version = "1.18.0"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "1312879f971330a1b7f2c6341f2ae7e2cbac244bfc9d0ecfbbecd4b0293bc755"; 12 }; 13 14 checkInputs = [ pytest mock glibcLocales ]; 15 16 # Default tox.ini parameters not needed 17 checkPhase = '' 18 rm tox.ini 19 pytest 20 ''; 21 22 propagatedBuildInputs = [ wcwidth six ]; 23 24 meta = with lib; { 25 homepage = "https://github.com/jquast/blessed"; 26 description = "A thin, practical wrapper around terminal capabilities in Python."; 27 maintainers = with maintainers; [ eqyiel ]; 28 license = licenses.mit; 29 }; 30}