summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/http-ece/default.nix
blob: d4010abc524266c421b0d84301fc5261ee87a82b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
  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 ];
  };
}