depot/third_party/nixpkgs/pkgs/development/python-modules/pywizlight/default.nix
Default email ffc78d3539 Project import generated by Copybara.
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
2021-01-05 19:05:55 +02:00

34 lines
680 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, asyncio-dgram
, click
}:
buildPythonPackage rec {
pname = "pywizlight";
version = "0.4.1";
src = fetchFromGitHub {
owner = "sbidy";
repo = pname;
rev = "v${version}";
sha256 = "0kyhyda28zbni9sjv6kvky6wlhqldl47niddgpbjsv5dlb9xvxns";
};
propagatedBuildInputs = [
asyncio-dgram
click
];
# no tests are present
doCheck = false;
pythonImportsCheck = [ "pywizlight" ];
meta = with lib; {
description = "Python connector for WiZ light bulbs";
homepage = "https://github.com/sbidy/pywizlight";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}