2021-03-04 19:00:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, aiohttp
|
|
|
|
, python-dateutil
|
2022-04-08 10:13:26 +00:00
|
|
|
, pythonOlder
|
2021-03-04 19:00:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyplaato";
|
2022-04-22 01:18:42 +00:00
|
|
|
version = "0.0.18";
|
2022-04-08 10:13:26 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-04 19:00:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-22 01:18:42 +00:00
|
|
|
hash = "sha256-HZF3Yxb/dTQSVzTkdAbfeD1Zyf8jFHoF3nt6OcdCnAM=";
|
2021-03-04 19:00:28 +00:00
|
|
|
};
|
|
|
|
|
2022-04-08 10:13:26 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
python-dateutil
|
|
|
|
];
|
2021-03-04 19:00:28 +00:00
|
|
|
|
2022-04-08 10:13:26 +00:00
|
|
|
# Module has no tests
|
2021-03-04 19:00:28 +00:00
|
|
|
doCheck = false;
|
2022-04-08 10:13:26 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyplaato"
|
|
|
|
];
|
2021-03-04 19:00:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API client for fetching Plaato data";
|
|
|
|
homepage = "https://github.com/JohNan/pyplaato";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|