2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
cryptography,
|
|
|
|
ddt,
|
|
|
|
fetchFromGitHub,
|
|
|
|
mock-services,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
urllib3,
|
|
|
|
requests-toolbelt,
|
|
|
|
requests-unixsocket,
|
|
|
|
setuptools,
|
|
|
|
ws4py,
|
2021-05-03 20:48:10 +00:00
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylxd";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "2.3.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchFromGitHub {
|
2024-04-21 15:54:59 +00:00
|
|
|
owner = "canonica";
|
2021-05-03 20:48:10 +00:00
|
|
|
repo = "pylxd";
|
2024-02-07 01:22:34 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-Q4GMz7HFpJNPYlYgLhE0a7mVCwNpdbw4XVcUGQ2gUJ0=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "urllib3" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-05-03 20:48:10 +00:00
|
|
|
cryptography
|
|
|
|
python-dateutil
|
|
|
|
requests
|
2021-02-05 17:12:51 +00:00
|
|
|
requests-toolbelt
|
2021-05-03 20:48:10 +00:00
|
|
|
requests-unixsocket
|
2024-04-21 15:54:59 +00:00
|
|
|
urllib3
|
2021-05-03 20:48:10 +00:00
|
|
|
ws4py
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-03 20:48:10 +00:00
|
|
|
ddt
|
|
|
|
mock-services
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
"integration"
|
|
|
|
"migration"
|
2021-02-05 17:12:51 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pylxd" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Library for interacting with the LXD REST API";
|
|
|
|
homepage = "https://pylxd.readthedocs.io/";
|
|
|
|
changelog = "https://github.com/canonical/pylxd/releases/tag/${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|