blob: 68e17e1a8344030be46b1052b467dd0decd5b490 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
jsonpickle,
pytestCheckHook,
requests,
responses,
setuptools,
}:
buildPythonPackage rec {
pname = "python-digitalocean";
version = "1.17.0";
pyproject = true;
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 ];
};
}
|