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";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lxc";
|
|
|
|
repo = "pylxd";
|
|
|
|
rev = version;
|
2022-02-20 05:27:41 +00:00
|
|
|
sha256 = "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
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ petabyteboy ];
|
|
|
|
};
|
|
|
|
}
|