2021-02-19 19:06:45 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-01-27 00:19:43 +00:00
|
|
|
, pythonOlder
|
2021-02-19 19:06:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyeight";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.3.0";
|
2022-01-27 00:19:43 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-02-19 19:06:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mezz64";
|
|
|
|
repo = "pyEight";
|
|
|
|
rev = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-H8f7990+ZKoOEzPgeYt4vMHCrcWwIa0X1gMh2qXBAoo=";
|
2021-02-19 19:06:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
async-timeout
|
|
|
|
];
|
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
# Module has no tests
|
2021-02-19 19:06:45 +00:00
|
|
|
doCheck = false;
|
2022-01-27 00:19:43 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyeight"
|
|
|
|
];
|
2021-02-19 19:06:45 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|