diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/wcwidth/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/wcwidth/default.nix | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/wcwidth/default.nix b/nixpkgs/pkgs/development/python-modules/wcwidth/default.nix index 30b966cdf8c..7d5cbc69eca 100644 --- a/nixpkgs/pkgs/development/python-modules/wcwidth/default.nix +++ b/nixpkgs/pkgs/development/python-modules/wcwidth/default.nix @@ -1,23 +1,27 @@ -{ lib, fetchPypi, buildPythonPackage, pytest }: +{ lib, fetchPypi, buildPythonPackage, pytestCheckHook +, isPy3k +, backports_functools_lru_cache +, setuptools +}: buildPythonPackage rec { pname = "wcwidth"; - version = "0.1.9"; + version = "0.2.5"; src = fetchPypi { inherit pname version; - sha256 = "ee73862862a156bf77ff92b09034fc4825dd3af9cf81bc5b360668d425f3c5f1"; + sha256 = "c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"; }; - checkInputs = [ pytest ]; + checkInputs = [ pytestCheckHook ]; + + propagatedBuildInputs = [ setuptools ] ++ lib.optionals (!isPy3k) [ + backports_functools_lru_cache + ]; # To prevent infinite recursion with pytest doCheck = false; - checkPhase = '' - pytest - ''; - meta = with lib; { description = "Measures number of Terminal column cells of wide-character codes"; longDescription = '' |