@@ -0,0 +1,30 @@
1+{ lib, buildPythonPackage, fetchPypi, pbr, dateutil, ws4py, requests-unixsocket, requests-toolbelt, mock }:
2+
3+buildPythonPackage rec {
4+ pname = "pylxd";
5+ version = "2.3.0";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "1db88l55q974fm9z5gllx3i8bkj0jzi25xrr5cs6id3bfy4zp8a7";
10+ };
11+
12+ propagatedBuildInputs = [
13+ pbr
14+ dateutil
15+ ws4py
16+ requests-unixsocket
17+ requests-toolbelt
18+ ];
19+
20+ # tests require an old version of requests-mock that we do not have a package for
21+ doCheck = false;
22+ pythonImportsCheck = [ "pylxd" ];
23+
24+ meta = with lib; {
25+ description = "A Python library for interacting with the LXD REST API";
26+ homepage = "https://pylxd.readthedocs.io/en/latest/";
27+ license = licenses.asl20;
28+ maintainers = with maintainers; [ petabyteboy ];
29+ };
30+}