mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
ab3dba9ad2
Also run tests.
55 lines
964 B
Nix
55 lines
964 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, cryptography
|
|
, python-dateutil
|
|
, requests
|
|
, requests-toolbelt
|
|
, requests-unixsocket
|
|
, ws4py
|
|
, ddt
|
|
, mock-services
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylxd";
|
|
version = "2.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lxc";
|
|
repo = "pylxd";
|
|
rev = version;
|
|
sha256 = "144frnlsb21mglgyisms790hyrdfx1l91lcd7incch4m4a1cbpp6";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
python-dateutil
|
|
requests
|
|
requests-toolbelt
|
|
requests-unixsocket
|
|
ws4py
|
|
];
|
|
|
|
checkInputs = [
|
|
ddt
|
|
mock-services
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"integration"
|
|
"migration"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|