2021-02-18 11:38:39 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, pytestCheckHook
|
|
|
|
, mock
|
|
|
|
}:
|
2017-07-21 14:22:15 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "linode-api";
|
2021-02-18 11:38:39 +00:00
|
|
|
version = "5.0.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-07-24 12:21:08 +01:00
|
|
|
|
2018-03-30 05:55:05 +01:00
|
|
|
# Sources from Pypi exclude test fixtures
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linode";
|
|
|
|
repo = "python-linode-api";
|
2021-02-18 11:38:39 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0lqi15vks4fxbki1l7n1bfzygjy3w17d9wchjxvp22ijmas44yai";
|
2017-07-21 14:22:15 +01:00
|
|
|
};
|
|
|
|
|
2021-02-18 11:38:39 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "linode_api4" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for the Linode API v4";
|
2017-07-21 14:22:15 +01:00
|
|
|
homepage = "https://github.com/linode/python-linode-api";
|
2021-02-18 11:38:39 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ glenns ];
|
2017-07-21 14:22:15 +01:00
|
|
|
};
|
|
|
|
}
|