depot/third_party/nixpkgs/pkgs/development/python-modules/http-ece/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

39 lines
745 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchPypi,
mock,
pynose,
}:
buildPythonPackage rec {
pname = "http-ece";
version = "1.2.0";
src = fetchPypi {
pname = "http_ece";
inherit version;
sha256 = "sha256-tZIPjvuOG1+wJXE+Ozb9pUM2JiAQY0sm3B+Y+F0es94=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail '"nose",' "" \
--replace-fail '"coverage",' ""
'';
propagatedBuildInputs = [ cryptography ];
nativeCheckInputs = [
mock
pynose
];
meta = with lib; {
description = "Encipher HTTP Messages";
homepage = "https://github.com/martinthomson/encrypted-content-encoding";
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}