nixpkgs/pkgs/development/python-modules/pylitterbot/default.nix
2021-08-06 22:47:29 +02:00

44 lines
806 B
Nix

{ lib
, authlib
, buildPythonPackage
, fetchFromGitHub
, httpx
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pytz
}:
buildPythonPackage rec {
pname = "pylitterbot";
version = "2021.8.0";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "natekspencer";
repo = pname;
rev = version;
sha256 = "sha256-Z7/j5ZZd8cOJhY/GfKUcDSJZvmU/TR/KDK60j1eYsik=";
};
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 ];
};
}