1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchPypi, 6 mock, 7 pynose, 8}: 9 10buildPythonPackage rec { 11 pname = "http-ece"; 12 version = "1.2.0"; 13 14 src = fetchPypi { 15 pname = "http_ece"; 16 inherit version; 17 sha256 = "sha256-tZIPjvuOG1+wJXE+Ozb9pUM2JiAQY0sm3B+Y+F0es94="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py \ 22 --replace-fail '"nose",' "" \ 23 --replace-fail '"coverage",' "" 24 ''; 25 26 propagatedBuildInputs = [ cryptography ]; 27 28 nativeCheckInputs = [ 29 mock 30 pynose 31 ]; 32 33 meta = with lib; { 34 description = "Encipher HTTP Messages"; 35 homepage = "https://github.com/martinthomson/encrypted-content-encoding"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ peterhoeg ]; 38 }; 39}