2020-02-27 22:52:14 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchPypi
|
|
|
|
, isPy3k
|
|
|
|
, jsonpickle
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, pytestCheckHook
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
, stdenv
|
|
|
|
}:
|
2018-04-03 11:39:28 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-digitalocean";
|
2020-02-27 22:52:14 +00:00
|
|
|
version = "1.15.0";
|
2018-04-03 11:39:28 +00:00
|
|
|
|
2020-02-27 22:52:14 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "koalalorenzo";
|
|
|
|
repo = "python-digitalocean";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1pz15mh72i992p63grwzqn2bbp6sm37zcp4f0fy1z7rsargwsbcz";
|
2018-04-03 11:39:28 +00:00
|
|
|
};
|
|
|
|
|
2020-02-27 22:52:14 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
jsonpickle
|
|
|
|
requests
|
|
|
|
];
|
2018-04-03 11:39:28 +00:00
|
|
|
|
2020-02-27 22:52:14 +00:00
|
|
|
dontUseSetuptoolsCheck = true;
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
pytestCheckHook
|
|
|
|
responses
|
|
|
|
] ++ stdenv.lib.optionals (!isPy3k) [
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
cd digitalocean
|
|
|
|
'';
|
2018-04-03 11:39:28 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "digitalocean.com API to manage Droplets and Images";
|
2020-02-27 22:52:14 +00:00
|
|
|
homepage = "https://pypi.python.org/pypi/python-digitalocean";
|
2018-04-03 11:39:28 +00:00
|
|
|
license = licenses.lgpl3;
|
2020-02-27 22:52:14 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
kiwi
|
|
|
|
teh
|
|
|
|
];
|
2018-04-03 11:39:28 +00:00
|
|
|
};
|
|
|
|
}
|