python.pkgs.py3status: fix build

This commit is contained in:
Robert Schütz 2018-09-05 23:28:31 +02:00
parent df05618f2a
commit 041043420f

View File

@ -1,6 +1,7 @@
{ stdenv { stdenv
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch
, requests , requests
, pytz , pytz
, tzlocal , tzlocal
@ -19,10 +20,18 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "py3status"; pname = "py3status";
version = "3.12"; version = "3.12";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "c9ef49f72c2d83976d2841ab7e70faee3c77f4d7dbb2d3390ef0f0509473ea9a"; sha256 = "c9ef49f72c2d83976d2841ab7e70faee3c77f4d7dbb2d3390ef0f0509473ea9a";
}; };
# ImportError: cannot import name '_to_ascii'
patches = fetchpatch {
url = "${meta.homepage}/commit/8a48e01cb68b514b532f56037e4f5a6c19662de5.patch";
sha256 = "0v1yja5lvdjk6vh13lvh07n7aw5hjcy7v9lrs2dfb0y0cjw4kx9n";
};
doCheck = false; doCheck = false;
propagatedBuildInputs = [ pytz requests tzlocal ]; propagatedBuildInputs = [ pytz requests tzlocal ];
buildInputs = [ file ]; buildInputs = [ file ];