2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 13:29:27 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-06 16:19:42 +01:00
|
|
|
version = "1.0.1";
|
2018-10-29 13:29:27 +00:00
|
|
|
pname = "vultr";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-06-06 16:19:42 +01:00
|
|
|
owner = "spry-group";
|
|
|
|
repo = "python-vultr";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "00lc5hdhchvm0472p03019bp9541d8y2773xkjy8vblq9qhys8q7";
|
2018-10-29 13:29:27 +00:00
|
|
|
};
|
|
|
|
|
2021-06-06 16:19:42 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
];
|
2018-10-29 13:29:27 +00:00
|
|
|
|
|
|
|
# Tests disabled. They fail because they try to access the network
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-06-06 16:19:42 +01:00
|
|
|
pythonImportsCheck = [ "vultr" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 13:29:27 +00:00
|
|
|
description = "Vultr.com API Client";
|
|
|
|
homepage = "https://github.com/spry-group/python-vultr";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lihop ];
|
|
|
|
};
|
|
|
|
}
|