2021-04-05 15:23:46 +00:00
|
|
|
{ lib
|
2022-09-11 15:47:08 +00:00
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
2021-04-05 15:23:46 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-09-11 15:47:08 +00:00
|
|
|
, poetry-core
|
|
|
|
, pyjwt
|
|
|
|
, pytest-aiohttp
|
|
|
|
, pytest-freezegun
|
2021-04-05 15:23:46 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2022-09-11 15:47:08 +00:00
|
|
|
, deepdiff
|
2021-04-05 15:23:46 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylitterbot";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "2023.4.0";
|
2022-09-11 15:47:08 +00:00
|
|
|
format = "pyproject";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natekspencer";
|
|
|
|
repo = pname;
|
2022-09-11 15:47:08 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-nF6njY2qNoHW2ZGNDHNeTBTjSBbitJxitPgyayLaqSE=";
|
2021-04-05 15:23:46 +00:00
|
|
|
};
|
|
|
|
|
2022-09-11 15:47:08 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-09-11 15:47:08 +00:00
|
|
|
aiohttp
|
|
|
|
deepdiff
|
|
|
|
pyjwt
|
2021-04-05 15:23:46 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-11 15:47:08 +00:00
|
|
|
aioresponses
|
|
|
|
pytest-aiohttp
|
|
|
|
pytest-freezegun
|
2021-04-05 15:23:46 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
# https://github.com/natekspencer/pylitterbot/issues/73
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace 'deepdiff = "^5.8.1"' 'deepdiff = ">=5.8.1"'
|
|
|
|
'';
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pylitterbot"
|
|
|
|
];
|
2021-04-05 15:23:46 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-11 15:47:08 +00:00
|
|
|
description = "Modulefor controlling a Litter-Robot";
|
2021-04-05 15:23:46 +00:00
|
|
|
homepage = "https://github.com/natekspencer/pylitterbot";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/natekspencer/pylitterbot/releases/tag/${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|