nixpkgs/pkgs/development/python-modules/blessed/default.nix

28 lines
697 B
Nix
Raw Normal View History

2017-12-14 22:32:26 +00:00
{ stdenv, buildPythonPackage, fetchPypi, six, wcwidth, pytest, mock
, glibcLocales }:
buildPythonPackage rec {
pname = "blessed";
2018-06-21 06:37:16 +01:00
version = "1.15.0";
src = fetchPypi {
inherit pname version;
2018-06-21 06:37:16 +01:00
sha256 = "777b0b6b5ce51f3832e498c22bc6a093b6b5f99148c7cbf866d26e2dec51ef21";
};
2017-12-14 22:32:26 +00:00
checkInputs = [ pytest mock glibcLocales ];
checkPhase = ''
LANG=en_US.utf-8 py.test blessed/tests
'';
propagatedBuildInputs = [ wcwidth six ];
meta = with stdenv.lib; {
homepage = https://github.com/jquast/blessed;
description = "A thin, practical wrapper around terminal capabilities in Python.";
maintainers = with maintainers; [ eqyiel ];
license = licenses.mit;
};
}