depot/third_party/nixpkgs/pkgs/development/python-modules/linode-api/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

44 lines
885 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
requests,
pytestCheckHook,
mock,
}:
buildPythonPackage rec {
pname = "linode-api";
version = "5.13.1";
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-WB4CurdokRKh1eD6FZR2SeMpa3Z0BzLb0ldI7SYPEVI=";
};
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 ];
};
}