about summary refs log tree commit diff
path: root/pkgs/development/python-modules/vultr/default.nix
blob: 4e10e0144243eaed3bc4645d70c81868aa771810 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
}:

buildPythonPackage rec {
  version = "1.0.1";
  format = "setuptools";
  pname = "vultr";

  src = fetchFromGitHub {
    owner = "spry-group";
    repo = "python-vultr";
    rev = "v${version}";
    sha256 = "00lc5hdhchvm0472p03019bp9541d8y2773xkjy8vblq9qhys8q7";
  };

  propagatedBuildInputs = [ requests ];

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

  pythonImportsCheck = [ "vultr" ];

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