Merge pull request #112933 from fabaff/pyzerproc

wip/yesman
Sandro 3 years ago committed by GitHub
commit 0668746a1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 53
      pkgs/development/python-modules/pyzerproc/default.nix
  2. 2
      pkgs/servers/home-assistant/component-packages.nix
  3. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,53 @@
{ lib
, asynctest
, bleak
, click
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-cov
, pytest-mock
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyzerproc";
version = "0.4.6";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "emlove";
repo = pname;
rev = version;
sha256 = "1qlxvvy9fyff56dvc46nsd5ngkxqhdi7s4gwfndj7dn76j81srpq";
};
# Remove pytest-runner, https://github.com/emlove/pyzerproc/pull/1
patchPhase = ''
substituteInPlace setup.py --replace "'pytest-runner'," ""
'';
propagatedBuildInputs = [
bleak
click
];
checkInputs = [
asynctest
pytest-asyncio
pytest-cov
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "pyzerproc" ];
meta = with lib; {
description = "Python library to control Zerproc Bluetooth LED smart string lights";
homepage = "https://github.com/emlove/pyzerproc";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}

@ -965,7 +965,7 @@
"zamg" = ps: with ps; [ ];
"zengge" = ps: with ps; [ ]; # missing inputs: zengge
"zeroconf" = ps: with ps; [ aiohttp-cors zeroconf ];
"zerproc" = ps: with ps; [ ]; # missing inputs: pyzerproc
"zerproc" = ps: with ps; [ pyzerproc ];
"zestimate" = ps: with ps; [ xmltodict ];
"zha" = ps: with ps; [ bellows pyserial-asyncio pyserial zha-quirks zigpy-cc zigpy-deconz zigpy-xbee zigpy-zigate zigpy-znp zigpy ];
"zhong_hong" = ps: with ps; [ ]; # missing inputs: zhong_hong_hvac

@ -6600,6 +6600,8 @@ in {
pyyaml = callPackage ../development/python-modules/pyyaml { };
pyzerproc = callPackage ../development/python-modules/pyzerproc { };
pyzmq = callPackage ../development/python-modules/pyzmq { };
pyzufall = callPackage ../development/python-modules/pyzufall { };

Loading…
Cancel
Save