Merge pull request #121129 from fabaff/bump-screenlogicpy

This commit is contained in:
Maciej Krüger 2021-04-29 11:09:02 +02:00 committed by GitHub
commit f7dccd8e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,22 +1,32 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "screenlogicpy";
version = "0.3.0";
version = "0.4.1";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0gn2mf2n2g1ffdbijrydgb7dgd60lkvckblx6s86kxlkrp1wqgrq";
src = fetchFromGitHub {
owner = "dieselrabbit";
repo = pname;
rev = "v${version}";
sha256 = "1rmjxqqbkfcv2xz8ilml799bzffls678fvq784fab2xdv595fndd";
};
# Project doesn't publish tests
# https://github.com/dieselrabbit/screenlogicpy/issues/8
doCheck = false;
checkInputs = [
pytestCheckHook
];
disabledTests = [
# Tests require network access
"test_gateway_discovery"
"test_asyncio_gateway_discovery"
];
pythonImportsCheck = [ "screenlogicpy" ];
meta = with lib; {