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:
parent
ba9275da88
commit
de0fb400bf
|
@ -213,6 +213,7 @@
|
|||
gilligan = "Tobias Pflug <tobias.pflug@gmail.com>";
|
||||
giogadi = "Luis G. Torres <lgtorres42@gmail.com>";
|
||||
gleber = "Gleb Peregud <gleber.p@gmail.com>";
|
||||
glenns = "Glenn Searby <glenn.searby@gmail.com>";
|
||||
globin = "Robin Gloster <mail@glob.in>";
|
||||
gnidorah = "Alex Ivanov <yourbestfriend@opmbx.org>";
|
||||
goibhniu = "Cillian de Róiste <cillian.deroiste@gmail.com>";
|
||||
|
|
34
pkgs/development/python-modules/linode-api/default.nix
Normal file
34
pkgs/development/python-modules/linode-api/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -12589,6 +12589,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
linode-api = callPackage ../development/python-modules/linode-api { };
|
||||
|
||||
livereload = buildPythonPackage rec {
|
||||
name = "livereload-${version}";
|
||||
version = "2.5.0";
|
||||
|
|
Loading…
Reference in a new issue