nixpkgs/pkgs/development/python-modules/pydo/default.nix
2026-02-27 05:06:10 +00:00

60 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
azure-core,
azure-identity,
isodate,
msrest,
aioresponses,
pytest-asyncio,
pytestCheckHook,
responses,
}:
buildPythonPackage rec {
pname = "pydo";
version = "0.27.0";
pyproject = true;
src = fetchFromGitHub {
owner = "digitalocean";
repo = "pydo";
tag = "v${version}";
hash = "sha256-2vJ/yOOJuil1oFWIYU2yV29RG/j92kpz0ubmJpyzS4U=";
};
build-system = [ poetry-core ];
dependencies = [
azure-core
azure-identity
isodate
msrest
];
pythonImportsCheck = [ "pydo" ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
responses
];
# integration tests require hitting the live api with a
# digital ocean token
disabledTestPaths = [
"tests/integration/"
];
meta = {
description = "Official DigitalOcean Client based on the DO OpenAPIv3 specification";
homepage = "https://github.com/digitalocean/pydo";
changelog = "https://github.com/digitalocean/pydo/releases/tag/v${version}";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ethancedwards8 ];
};
}