1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, requests
5}:
6
7buildPythonPackage rec {
8 version = "1.0.1";
9 pname = "vultr";
10
11 src = fetchFromGitHub {
12 owner = "spry-group";
13 repo = "python-vultr";
14 rev = "v${version}";
15 sha256 = "00lc5hdhchvm0472p03019bp9541d8y2773xkjy8vblq9qhys8q7";
16 };
17
18 propagatedBuildInputs = [
19 requests
20 ];
21
22 # Tests disabled. They fail because they try to access the network
23 doCheck = false;
24
25 pythonImportsCheck = [ "vultr" ];
26
27 meta = with lib; {
28 description = "Vultr.com API Client";
29 homepage = "https://github.com/spry-group/python-vultr";
30 license = licenses.mit;
31 maintainers = with maintainers; [ lihop ];
32 };
33}