emacsPackages.lsp-bridge: 0-unstable-2025-01-11 -> 0-unstable-2025-01-22 (#376531)
[NixPkgs.git] / pkgs / development / python-modules / pylxd / default.nix
blobf6edde15a919f42133cbd53bede8d770f1622ea3
2   lib,
3   buildPythonPackage,
4   cryptography,
5   ddt,
6   fetchFromGitHub,
7   mock-services,
8   pytestCheckHook,
9   python-dateutil,
10   pythonOlder,
11   requests,
12   urllib3,
13   requests-toolbelt,
14   requests-unixsocket,
15   setuptools,
16   ws4py,
19 buildPythonPackage rec {
20   pname = "pylxd";
21   version = "2.3.2";
22   pyproject = true;
24   disabled = pythonOlder "3.8";
26   src = fetchFromGitHub {
27     owner = "canonica";
28     repo = "pylxd";
29     tag = version;
30     hash = "sha256-Q4GMz7HFpJNPYlYgLhE0a7mVCwNpdbw4XVcUGQ2gUJ0=";
31   };
33   pythonRelaxDeps = [ "urllib3" ];
35   nativeBuildInputs = [
36     setuptools
37   ];
39   propagatedBuildInputs = [
40     cryptography
41     python-dateutil
42     requests
43     requests-toolbelt
44     requests-unixsocket
45     urllib3
46     ws4py
47   ];
49   nativeCheckInputs = [
50     ddt
51     mock-services
52     pytestCheckHook
53   ];
55   disabledTestPaths = [
56     "integration"
57     "migration"
58   ];
60   pythonImportsCheck = [ "pylxd" ];
62   meta = with lib; {
63     description = "Library for interacting with the LXD REST API";
64     homepage = "https://pylxd.readthedocs.io/";
65     changelog = "https://github.com/canonical/pylxd/releases/tag/${version}";
66     license = licenses.asl20;
67     maintainers = [ ];
68   };