biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / python-digitalocean / default.nix
blob4597db497fb90e84380f16b2e821ca94df0ecf34
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   jsonpickle,
6   pytestCheckHook,
7   pythonOlder,
8   requests,
9   responses,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "python-digitalocean";
15   version = "1.17.0";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "koalalorenzo";
22     repo = "python-digitalocean";
23     rev = "refs/tags/v${version}";
24     hash = "sha256-CIYW6vl+IOO94VyfgTjJ3T13uGtz4BdKyVmE44maoLA=";
25   };
27   build-system = [ setuptools ];
29   dependencies = [
30     jsonpickle
31     requests
32   ];
34   nativeCheckInputs = [
35     pytestCheckHook
36     responses
37   ];
39   preCheck = ''
40     cd digitalocean
41   '';
43   # Test tries to access the network
44   disabledTests = [ "TestFirewall" ];
46   pythonImportsCheck = [ "digitalocean" ];
48   meta = with lib; {
49     description = "Python API to manage Digital Ocean Droplets and Images";
50     homepage = "https://github.com/koalalorenzo/python-digitalocean";
51     changelog = "https://github.com/koalalorenzo/python-digitalocean/releases/tag/v${version}";
52     license = with licenses; [ lgpl3Only ];
53     maintainers = with maintainers; [ teh ];
54   };