2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
requests,
|
|
|
|
urllib3,
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "unifiled";
|
|
|
|
version = "1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "florisvdk";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1nmqxxhwa0isxdb889nhbp7w4axj1mcrwd3pr9d8nhpw4yj9h3vq";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
urllib3
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project doesn't have any tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "unifiled" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for Ubiquiti Unifi LED controller";
|
|
|
|
homepage = "https://github.com/florisvdk/unifiled";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|