2021-03-20 08:53:47 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-runner
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "iaqualink";
|
2021-07-30 22:46:42 +01:00
|
|
|
version = "0.4.1";
|
2021-03-20 08:53:47 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "flz";
|
|
|
|
repo = "iaqualink-py";
|
|
|
|
rev = "v${version}";
|
2021-07-30 22:46:42 +01:00
|
|
|
sha256 = "0xgxajw38jrc55xh8w8mq0dk82ml77mfs8yn05gcpv8l24y70chq";
|
2021-03-20 08:53:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytest-runner ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "iaqualink" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for Jandy iAqualink";
|
|
|
|
homepage = "https://github.com/flz/iaqualink-py";
|
|
|
|
license = with licenses; [ bsd3 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|