5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
60 lines
1 KiB
Nix
60 lines
1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, aioresponses
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pyjwt
|
|
, pytest-aiohttp
|
|
, pytest-freezegun
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, deepdiff
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylitterbot";
|
|
version = "2022.9.6";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "natekspencer";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-+8vsnSEEZ7uypASsJZ2MIK+riIF01Lxa1E3t0pC+e/I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
deepdiff
|
|
pyjwt
|
|
];
|
|
|
|
checkInputs = [
|
|
aioresponses
|
|
pytest-aiohttp
|
|
pytest-freezegun
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"--asyncio-mode=legacy"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pylitterbot"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Modulefor controlling a Litter-Robot";
|
|
homepage = "https://github.com/natekspencer/pylitterbot";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|