summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/requests-http-message-signatures/default.nix
blob: 94662782c8272cc3b6d11144ad319bfe1b175c46 (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
41
42
{
  lib,
  buildPythonPackage,
  fetchFromGitLab,
  poetry-core,
  cryptography,
  requests,
}:

buildPythonPackage rec {
  pname = "requests-http-message-signatures";
  version = "0.3.0";
  pyproject = true;

  src = fetchFromGitLab {
    domain = "dev.funkwhale.audio";
    owner = "funkwhale";
    repo = "requests-http-message-signatures";
    tag = version;
    hash = "sha256-1GObY+bF5wwgjDORUlO61bmIadK+EpZtyYGMgS9Bqzg=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    cryptography
    requests
  ];

  # Tests require network access.
  doCheck = false;

  pythonImportsCheck = [ "requests_http_message_signatures" ];

  meta = {
    description = "Request authentication plugin implementing IETF HTTP Message Signatures";
    homepage = "https://dev.funkwhale.audio/funkwhale/requests-http-message-signatures";
    changelog = "https://dev.funkwhale.audio/funkwhale/requests-http-message-signatures/-/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.asl20;
    teams = [ lib.teams.ngi ];
  };
}