2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cryptography
|
|
|
|
, python-dateutil
|
|
|
|
, requests
|
|
|
|
, requests-toolbelt
|
|
|
|
, requests-unixsocket
|
|
|
|
, ws4py
|
|
|
|
, ddt
|
|
|
|
, mock-services
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylxd";
|
2022-02-20 05:27:41 +00:00
|
|
|
version = "2.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "pylxd";
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-eDRCJYjmBndMnSNuS6HD/2p/KhzqJq2qPAzMk7kC5UM=";
|
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
|
|
|
|
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
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pylxd" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python library for interacting with the LXD REST API";
|
|
|
|
homepage = "https://pylxd.readthedocs.io/en/latest/";
|
|
|
|
license = licenses.asl20;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|