depot/third_party/nixpkgs/pkgs/development/python-modules/pyruckus/default.nix
Default email ca5ab3a501 Project import generated by Copybara.
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
2022-07-14 08:49:19 -04:00

36 lines
746 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pexpect
, python-slugify
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyruckus";
version = "0.16";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "gabe565";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "sha256-SVE5BrCCQgCrhOC0CSGgbZ9TEY3iZ9Rp/xMUShPAxxM=";
};
propagatedBuildInputs = [
pexpect
python-slugify
];
# Tests requires network features
doCheck = false;
pythonImportsCheck = [ "pyruckus" ];
meta = with lib; {
description = "Python client for Ruckus Unleashed";
homepage = "https://github.com/gabe565/pyruckus";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}