Merge pull request #27544 from cse-bristol/linode-api-python

linode-api: init at 4.1.1b2
This commit is contained in:
Daiderd Jordan 2017-08-05 17:40:33 +02:00 committed by GitHub
commit 4e24cc32bc
3 changed files with 41 additions and 0 deletions

View file

@ -215,6 +215,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>";

View file

@ -0,0 +1,38 @@
{ stdenv,
buildPythonPackage,
fetchPypi,
isPy3k,
pythonOlder,
lib,
requests,
future,
enum34 }:
buildPythonPackage rec {
pname = "linode-api";
version = "4.1.1b2"; # NOTE: this is a beta, and the API may change in future versions.
name = "${pname}-${version}";
disabled = (pythonOlder "2.7");
propagatedBuildInputs = [ requests future ]
++ stdenv.lib.optionals (pythonOlder "3.4") [ enum34 ];
postPatch = (stdenv.lib.optionalString (!pythonOlder "3.4") ''
sed -i -e '/"enum34",/d' setup.py
'');
doCheck = false; # This library does not have any tests at this point.
src = fetchPypi {
inherit pname version;
sha256 = "1lfqsll3wv1wzn98ymmcbw0yawj8ab3mxniws6kaxf99jd4a0xp4";
};
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

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