at master 803 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchFromGitHub, 6 setuptools, 7 pytestCheckHook, 8 pytest-cov-stub, 9}: 10 11buildPythonPackage rec { 12 pname = "http-ece"; 13 version = "1.2.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "web-push-libs"; 18 repo = "encrypted-content-encoding"; 19 rev = version; 20 hash = "sha256-HjXJWoOvCVOdEto4Ss4HPUuf+uNcQkfvj/cxJGHOhQ8="; 21 }; 22 23 sourceRoot = "${src.name}/python"; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ cryptography ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 pytest-cov-stub 32 ]; 33 34 meta = { 35 description = "Encipher HTTP Messages"; 36 homepage = "https://github.com/web-push-libs/encrypted-content-encoding"; 37 license = lib.licenses.mit; 38 maintainers = with lib.maintainers; [ peterhoeg ]; 39 }; 40}