f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
44 lines
885 B
Nix
44 lines
885 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
requests,
|
|
pytestCheckHook,
|
|
mock,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "linode-api";
|
|
version = "5.16.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
# Sources from Pypi exclude test fixtures
|
|
src = fetchFromGitHub {
|
|
owner = "linode";
|
|
repo = "python-linode-api";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-B90BfuAqyncJPIvcni7bthiwSfmeL9CqeTYT1/y5TNY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "linode_api4" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for the Linode API v4";
|
|
homepage = "https://github.com/linode/python-linode-api";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ glenns ];
|
|
};
|
|
}
|