2021-02-25 19:37:07 +01:00
|
|
|
{ lib
|
|
|
|
, authlib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, httpx
|
2021-04-01 01:32:46 +02:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2021-02-25 19:37:07 +01:00
|
|
|
, pythonOlder
|
2021-04-01 01:32:46 +02:00
|
|
|
, pytz
|
2021-02-25 19:37:07 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylitterbot";
|
2021-08-06 22:47:29 +02:00
|
|
|
version = "2021.8.0";
|
2021-02-25 19:37:07 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "natekspencer";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-06 22:47:29 +02:00
|
|
|
sha256 = "sha256-Z7/j5ZZd8cOJhY/GfKUcDSJZvmU/TR/KDK60j1eYsik=";
|
2021-02-25 19:37:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
authlib
|
|
|
|
httpx
|
2021-04-01 01:32:46 +02:00
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
2021-02-25 19:37:07 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|