2021-02-17 19:15:06 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyeight";
|
2021-07-08 01:58:18 +01:00
|
|
|
version = "0.1.9";
|
2021-02-17 19:15:06 +00:00
|
|
|
disabled = !isPy3k;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mezz64";
|
|
|
|
repo = "pyEight";
|
|
|
|
rev = version;
|
2021-07-08 01:58:18 +01:00
|
|
|
sha256 = "1ybhs09wyzzaryghd6ijxhajp3677x63c4qzqsgln1mmxhj8wm5k";
|
2021-02-17 19:15:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pyeight" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library to interface with the Eight Sleep API";
|
|
|
|
homepage = "https://github.com/mezz64/pyEight";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|