mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
Merge pull request #27544 from cse-bristol/linode-api-python
linode-api: init at 4.1.1b2
This commit is contained in:
commit
4e24cc32bc
|
@ -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>";
|
||||
|
|
38
pkgs/development/python-modules/linode-api/default.nix
Normal file
38
pkgs/development/python-modules/linode-api/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -12240,6 +12240,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