3
0
Fork 0
forked from mirrors/nixpkgs

linode-api: init at 4.1.1b1

Added Linode's official Python library for their v4 API.

This should assist with adding Linode support to Nixops (see:
https://github.com/NixOS/nixops/issues/198).

Note that this API is still in beta and subject to changes.
This commit is contained in:
Glenn Searby 2017-07-21 14:22:15 +01:00
parent ba9275da88
commit de0fb400bf
3 changed files with 37 additions and 0 deletions

View file

@ -213,6 +213,7 @@
gilligan = "Tobias Pflug <tobias.pflug@gmail.com>"; gilligan = "Tobias Pflug <tobias.pflug@gmail.com>";
giogadi = "Luis G. Torres <lgtorres42@gmail.com>"; giogadi = "Luis G. Torres <lgtorres42@gmail.com>";
gleber = "Gleb Peregud <gleber.p@gmail.com>"; gleber = "Gleb Peregud <gleber.p@gmail.com>";
glenns = "Glenn Searby <glenn.searby@gmail.com>";
globin = "Robin Gloster <mail@glob.in>"; globin = "Robin Gloster <mail@glob.in>";
gnidorah = "Alex Ivanov <yourbestfriend@opmbx.org>"; gnidorah = "Alex Ivanov <yourbestfriend@opmbx.org>";
goibhniu = "Cillian de Róiste <cillian.deroiste@gmail.com>"; goibhniu = "Cillian de Róiste <cillian.deroiste@gmail.com>";

View file

@ -0,0 +1,34 @@
{ stdenv,
buildPythonPackage,
fetchPypi,
isPy3k,
pythonOlder,
lib,
requests,
future,
enum34 }:
buildPythonPackage rec {
pname = "linode-api";
version = "4.1.1b1";
name = "${pname}-${version}";
disabled = (pythonOlder "2.7");
buildInputs = [];
propagatedBuildInputs = [ requests ]
++ stdenv.lib.optionals (!isPy3k) [ future ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
src = fetchPypi {
inherit pname version;
sha256 = "1psf4sknxrjqiz833x4nmh2pw7xi2rvcm7l9lv8jfdwxza63sny5";
};
meta = {
homepage = "https://github.com/linode/python-linode-api";
description = "The official python library for the Linode API v4 in python.";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ glenns ];
};
}

View file

@ -12589,6 +12589,8 @@ in {
}; };
}; };
linode-api = callPackage ../development/python-modules/linode-api { };
livereload = buildPythonPackage rec { livereload = buildPythonPackage rec {
name = "livereload-${version}"; name = "livereload-${version}";
version = "2.5.0"; version = "2.5.0";