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