1{ lib, fetchPypi, buildPythonPackage, pythonOlder
2, coverage, flake8, mock, nose, importlib-metadata
3, cryptography }:
4
5buildPythonPackage rec {
6 pname = "http_ece";
7 version = "1.1.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "1y5ln09ji4dwpzhxr77cggk02kghq7lql60a6969a5n2lwpvqblk";
12 };
13
14 propagatedBuildInputs = [ cryptography ]
15 ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
16
17 nativeCheckInputs = [ coverage flake8 mock nose ];
18
19 meta = with lib; {
20 description = "Encipher HTTP Messages";
21 homepage = "https://github.com/martinthomson/encrypted-content-encoding";
22 license = licenses.mit;
23 maintainers = with maintainers; [ peterhoeg ];
24 };
25}