1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pexpect
5, python-slugify
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "pyruckus";
11 version = "0.16";
12 disabled = pythonOlder "3.6";
13
14 src = fetchFromGitHub {
15 owner = "gabe565";
16 repo = pname;
17 rev = "refs/tags/${version}";
18 hash = "sha256-SVE5BrCCQgCrhOC0CSGgbZ9TEY3iZ9Rp/xMUShPAxxM=";
19 };
20
21 propagatedBuildInputs = [
22 pexpect
23 python-slugify
24 ];
25
26 # Tests requires network features
27 doCheck = false;
28 pythonImportsCheck = [ "pyruckus" ];
29
30 meta = with lib; {
31 description = "Python client for Ruckus Unleashed";
32 homepage = "https://github.com/gabe565/pyruckus";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ fab ];
35 };
36}