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:
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user