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