depot/third_party/nixpkgs/pkgs/development/python-modules/linode-api/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

47 lines
887 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
, requests
, pytestCheckHook
, mock
}:
buildPythonPackage rec {
pname = "linode-api";
version = "5.10.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-LQW1AKgCbsE2OxZHtuU6zSHv7/Ak2S07O8YuoC9mS+U=";
};
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 ];
};
}