python3Packages.moonraker-api: init at 2.0.2

This commit is contained in:
Fabian Affolter 2021-12-03 18:09:46 +01:00
parent 54060c0a1f
commit 37211393e8
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,43 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "moonraker-api";
version = "2.0.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "cmroche";
repo = pname;
rev = "v${version}";
sha256 = "1ODfwuO8XeleOnpp/dD+8jfEAIesXT1BuImtXTn289U=";
};
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
];
pythonImportsCheck = [
"moonraker_api"
];
meta = with lib; {
description = "Python API for the Moonraker API";
homepage = "https://github.com/cmroche/moonraker-api";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -4914,6 +4914,8 @@ in {
monty = callPackage ../development/python-modules/monty { };
moonraker-api = callPackage ../development/python-modules/moonraker-api { };
more-itertools = callPackage ../development/python-modules/more-itertools { };
moretools = callPackage ../development/python-modules/moretools { };