depot/third_party/nixpkgs/pkgs/development/python-modules/python-digitalocean/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

55 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";
rev = "refs/tags/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 = with lib; {
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 licenses; [ lgpl3Only ];
maintainers = with maintainers; [ teh ];
};
}