depot/third_party/nixpkgs/pkgs/development/python-modules/http-ece/default.nix

41 lines
803 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
cryptography,
fetchFromGitHub,
setuptools,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "http-ece";
version = "1.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "web-push-libs";
repo = "encrypted-content-encoding";
rev = version;
hash = "sha256-HjXJWoOvCVOdEto4Ss4HPUuf+uNcQkfvj/cxJGHOhQ8=";
};
sourceRoot = "${src.name}/python";
build-system = [ setuptools ];
dependencies = [ cryptography ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
meta = {
description = "Encipher HTTP Messages";
homepage = "https://github.com/web-push-libs/encrypted-content-encoding";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ peterhoeg ];
};
}