2020-06-15 15:56:04 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pythonOlder
|
|
|
|
, coverage, flake8, mock, nose, importlib-metadata
|
2020-04-24 23:36:52 +00:00
|
|
|
, cryptography }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "http_ece";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
sha256 = "sha256-tZIPjvuOG1+wJXE+Ozb9pUM2JiAQY0sm3B+Y+F0es94=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
propagatedBuildInputs = [ cryptography ]
|
|
|
|
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ coverage flake8 mock nose ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Encipher HTTP Messages";
|
|
|
|
homepage = "https://github.com/martinthomson/encrypted-content-encoding";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
};
|
|
|
|
}
|