Diff: https://github.com/UpCloudLtd/upcloud-python-api/compare/v2.7.0...v2.9.0 Changelog: https://github.com/UpCloudLtd/upcloud-python-api/blob/v2.9.0/CHANGELOG.md
48 lines
1003 B
Nix
48 lines
1003 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
requests,
|
|
keyring,
|
|
pytestCheckHook,
|
|
responses,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "upcloud-api";
|
|
version = "2.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "UpCloudLtd";
|
|
repo = "upcloud-python-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-OnHKKSlj6JbqXL1YDkmR7d6ae8eVdXOPx6Los5qPDJE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ requests ];
|
|
|
|
optional-dependencies = {
|
|
keyring = [ keyring ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
]
|
|
++ lib.flatten (builtins.attrValues optional-dependencies);
|
|
|
|
pythonImportsCheck = [ "upcloud_api" ];
|
|
|
|
meta = with lib; {
|
|
changelog = "https://github.com/UpCloudLtd/upcloud-python-api/blob/${src.tag}/CHANGELOG.md";
|
|
description = "UpCloud API Client";
|
|
homepage = "https://github.com/UpCloudLtd/upcloud-python-api";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|