Files
nixpkgs/pkgs/development/python-modules/pydo/default.nix
Ethan Carter Edwards e93b153b7d python3Packages.pydo: init at 0.17.0
Homepage: https://github.com/digitalocean/pydo

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2025-10-08 00:23:51 -04:00

61 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
aioresponses,
azure-core,
azure-identity,
isodate,
msrest,
responses,
pytestCheckHook,
pytest-asyncio,
}:
buildPythonPackage rec {
pname = "pydo";
version = "0.17.0";
pyproject = true;
src = fetchFromGitHub {
owner = "digitalocean";
repo = "pydo";
tag = "v${version}";
hash = "sha256-Tge8geMR0aP/tUmsrGWdCUvA5tu6Y7KgZv4r5iRtRz8=";
};
build-system = [ poetry-core ];
dependencies = [
aioresponses
azure-core
azure-identity
isodate
msrest
responses
];
pythonImportsCheck = [ "pydo" ];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
# 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 ];
};
}