1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6}:
7
8buildPythonPackage rec {
9 version = "1.0.1";
10 format = "setuptools";
11 pname = "vultr";
12
13 src = fetchFromGitHub {
14 owner = "spry-group";
15 repo = "python-vultr";
16 rev = "v${version}";
17 sha256 = "00lc5hdhchvm0472p03019bp9541d8y2773xkjy8vblq9qhys8q7";
18 };
19
20 propagatedBuildInputs = [ requests ];
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}