mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
44 lines
807 B
Nix
44 lines
807 B
Nix
{ lib
|
|
, authlib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpx
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pytz
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylitterbot";
|
|
version = "2021.10.1";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "natekspencer";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-xE+H23AZR1OXfuLMvSuI7IeYKX7k2iEATHq5VheMLn4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
authlib
|
|
httpx
|
|
pytz
|
|
];
|
|
|
|
checkInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|