summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/vultr/default.nix
blob: 0f92af755d875e937e5a951707b751f52feee710 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "vultr";
  version = "1.0.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "spry-group";
    repo = "python-vultr";
    tag = "v${version}";
    hash = "sha256-ByPtIU6Yro28nH2cIzxqgZR0VwpggCsOAXVDBhssjAI=";
  };

  build-system = [ setuptools ];

  dependencies = [ requests ];

  # Tests disabled. They fail because they try to access the network
  doCheck = false;

  pythonImportsCheck = [ "vultr" ];

  meta = {
    description = "Vultr.com API Client";
    homepage = "https://github.com/spry-group/python-vultr";
    changelog = "https://github.com/spry-group/python-vultr/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ lihop ];
  };
}