depot/third_party/nixpkgs/pkgs/development/python-modules/linode-api/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

55 lines
1,016 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
setuptools,
requests,
polling,
pytestCheckHook,
mock,
httpretty,
}:
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
polling
];
nativeCheckInputs = [
pytestCheckHook
mock
httpretty
];
disabledTestPaths = [
# needs api token
"test/integration"
];
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 ];
};
}