Files
nixpkgs/pkgs/development/python-modules/python-digitalocean/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
jsonpickle,
pytestCheckHook,
pythonOlder,
requests,
responses,
setuptools,
}:
buildPythonPackage rec {
pname = "python-digitalocean";
version = "1.17.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "koalalorenzo";
repo = "python-digitalocean";
tag = "v${version}";
hash = "sha256-CIYW6vl+IOO94VyfgTjJ3T13uGtz4BdKyVmE44maoLA=";
};
build-system = [ setuptools ];
dependencies = [
jsonpickle
requests
];
nativeCheckInputs = [
pytestCheckHook
responses
];
preCheck = ''
cd digitalocean
'';
# Test tries to access the network
disabledTests = [ "TestFirewall" ];
pythonImportsCheck = [ "digitalocean" ];
meta = {
description = "Python API to manage Digital Ocean Droplets and Images";
homepage = "https://github.com/koalalorenzo/python-digitalocean";
changelog = "https://github.com/koalalorenzo/python-digitalocean/releases/tag/v${version}";
license = with lib.licenses; [ lgpl3Only ];
maintainers = with lib.maintainers; [ teh ];
};
}