summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-transip/default.nix
blob: 95c3997123c1ec9e63758a78fbed7ae662173d4f (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
43
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  requests,
  cryptography,
  responses,
}:
buildPythonPackage rec {
  pname = "python-transip";
  version = "0.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "roaldnefs";
    repo = "python-transip";
    tag = "v${version}";
    hash = "sha256-HjlUwItkR81dyFGfY/YbHXI5k/IWUgzfikw5i4+yNWU=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    requests
    cryptography
  ];

  pythonImportsCheck = [
    "transip"
  ];

  nativeCheckInputs = [
    responses
    pytestCheckHook
  ];

  meta = {
    description = "Python wrapper for the TransIP REST API V6";
    homepage = "https://github.com/roaldnefs/python-transip";
    changelog = "https://github.com/roaldnefs/python-transip/blob/${src.tag}/CHANGELOG.md";
    license = lib.licenses.lgpl3;
    maintainers = [ lib.maintainers.provokateurin ];
  };
}