about summary refs log tree commit diff
path: root/pkgs/development/python-modules/http-ece/default.nix
blob: 66dd40712ded09757a79f53f84dbca018551d227 (plain) (blame)
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
41
42
{
  lib,
  buildPythonPackage,
  cryptography,
  fetchPypi,
  mock,
  nose,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "http-ece";
  version = "1.2.0";

  src = fetchPypi {
    pname = "http_ece";
    inherit version;
    hash = "sha256-tZIPjvuOG1+wJXE+Ozb9pUM2JiAQY0sm3B+Y+F0es94=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail '"nose",' "" \
      --replace-fail '"coverage",' ""
  '';

  propagatedBuildInputs = [ cryptography ];

  doCheck = pythonOlder "3.12";

  nativeCheckInputs = [
    mock
    nose
  ];

  meta = with lib; {
    description = "Encipher HTTP Messages";
    homepage = "https://github.com/martinthomson/encrypted-content-encoding";
    license = licenses.mit;
    maintainers = with maintainers; [ peterhoeg ];
  };
}