python3Packages.pylxd: fix build

Also run tests.
This commit is contained in:
Robert Schütz 2021-04-26 11:05:39 +02:00
parent 84d3d95f56
commit ab3dba9ad2

View File

@ -1,24 +1,48 @@
{ lib, buildPythonPackage, fetchPypi, pbr, dateutil, ws4py, requests-unixsocket, requests-toolbelt, mock }: { lib
, buildPythonPackage
, fetchFromGitHub
, cryptography
, python-dateutil
, requests
, requests-toolbelt
, requests-unixsocket
, ws4py
, ddt
, mock-services
, pytestCheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pylxd"; pname = "pylxd";
version = "2.3.0"; version = "2.3.0";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "lxc";
sha256 = "1db88l55q974fm9z5gllx3i8bkj0jzi25xrr5cs6id3bfy4zp8a7"; repo = "pylxd";
rev = version;
sha256 = "144frnlsb21mglgyisms790hyrdfx1l91lcd7incch4m4a1cbpp6";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
pbr cryptography
dateutil python-dateutil
ws4py requests
requests-unixsocket
requests-toolbelt requests-toolbelt
requests-unixsocket
ws4py
];
checkInputs = [
ddt
mock-services
pytestCheckHook
];
disabledTestPaths = [
"integration"
"migration"
]; ];
# tests require an old version of requests-mock that we do not have a package for
doCheck = false;
pythonImportsCheck = [ "pylxd" ]; pythonImportsCheck = [ "pylxd" ];
meta = with lib; { meta = with lib; {