diff options
author | Glenn Searby <glenn.searby@gmail.com> | 2017-07-21 14:22:15 +0100 |
---|---|---|
committer | Glenn Searby <glenn.searby@gmail.com> | 2017-07-21 14:25:48 +0100 |
commit | de0fb400bf8ed17ce8248da1615e2c2492fb35a1 (patch) | |
tree | d1718320f9695a5841fcc6ed450be79c4b5c0b67 /pkgs/development/python-modules/linode-api | |
parent | ba9275da880915873251faadeaa97fcc6c8af739 (diff) | |
download | nixlib-de0fb400bf8ed17ce8248da1615e2c2492fb35a1.tar nixlib-de0fb400bf8ed17ce8248da1615e2c2492fb35a1.tar.gz nixlib-de0fb400bf8ed17ce8248da1615e2c2492fb35a1.tar.bz2 nixlib-de0fb400bf8ed17ce8248da1615e2c2492fb35a1.tar.lz nixlib-de0fb400bf8ed17ce8248da1615e2c2492fb35a1.tar.xz nixlib-de0fb400bf8ed17ce8248da1615e2c2492fb35a1.tar.zst nixlib-de0fb400bf8ed17ce8248da1615e2c2492fb35a1.zip |
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.
Diffstat (limited to 'pkgs/development/python-modules/linode-api')
-rw-r--r-- | pkgs/development/python-modules/linode-api/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/linode-api/default.nix b/pkgs/development/python-modules/linode-api/default.nix new file mode 100644 index 000000000000..b6e3de7357ca --- /dev/null +++ b/pkgs/development/python-modules/linode-api/default.nix @@ -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 ]; + }; +} |