depot/third_party/nixpkgs/pkgs/development/python-modules/unifiled/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
727 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
urllib3,
}:
buildPythonPackage rec {
pname = "unifiled";
version = "1.1";
format = "setuptools";
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 ];
};
}