1{ buildPythonPackage 2, lib 3, fetchurl 4, pytest 5}: 6 7buildPythonPackage rec { 8 pname = "webencodings"; 9 version = "0.5.1"; 10 name = "${pname}-${version}"; 11 12 src = fetchurl { 13 url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; 14 sha256 = "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"; 15 }; 16 17 buildInputs = [ pytest ]; 18 19 checkPhase = '' 20 py.test webencodings/tests.py 21 ''; 22 23 meta = { 24 description = "Character encoding aliases for legacy web content"; 25 homepage = https://github.com/SimonSapin/python-webencodings; 26 license = lib.licenses.bsd3; 27 }; 28}