python3Packages.screenlogicpy: enable tests
This commit is contained in:
parent
7b7dacca89
commit
4ec3123b82
|
@ -1,7 +1,8 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -9,14 +10,23 @@ buildPythonPackage rec {
|
||||||
version = "0.4.1";
|
version = "0.4.1";
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "dieselrabbit";
|
||||||
sha256 = "sha256-Hj+AS8YN7ZtmgY5sUj4TmQspzeiKiLz6dBbmjhGCgXI=";
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1rmjxqqbkfcv2xz8ilml799bzffls678fvq784fab2xdv595fndd";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Project doesn't publish tests
|
checkInputs = [
|
||||||
# https://github.com/dieselrabbit/screenlogicpy/issues/8
|
pytestCheckHook
|
||||||
doCheck = false;
|
];
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# Tests require network access
|
||||||
|
"test_gateway_discovery"
|
||||||
|
"test_asyncio_gateway_discovery"
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "screenlogicpy" ];
|
pythonImportsCheck = [ "screenlogicpy" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue