2021-02-25 18:37:07 +00:00
|
|
|
{ lib
|
|
|
|
, authlib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
2021-04-01 00:32:46 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-02-25 18:37:07 +00:00
|
|
|
, pythonOlder
|
2021-04-01 00:32:46 +01:00
|
|
|
, pytz
|
2021-02-25 18:37:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylitterbot";
|
2021-04-01 00:32:46 +01:00
|
|
|
version = "2021.3.1";
|
2021-02-25 18:37:07 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natekspencer";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-04-01 00:32:46 +01:00
|
|
|
sha256 = "sha256-w2iyzCYoma8zQsXGIQnpgijDHNqmlvCnbeyF7PmLz9c=";
|
2021-02-25 18:37:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
authlib
|
|
|
|
httpx
|
2021-04-01 00:32:46 +01:00
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2021-02-25 18:37:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pylitterbot" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package for controlling a Litter-Robot";
|
|
|
|
homepage = "https://github.com/natekspencer/pylitterbot";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|