159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
40 lines
803 B
Nix
40 lines
803 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|