python3Packages.pyoctoprintapi: init at 0.1.7

This commit is contained in:
Martin Weinelt 2021-11-30 20:17:04 +01:00
parent a7c898f5f4
commit b27d0da9d8
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
# propagated
, aiohttp
# tests
, pytest-asyncio
, pytestCheckHook
}:
let
pname = "pyoctoprintapi";
version = "0.1.7";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
src = fetchFromGitHub {
owner = "rfleming71";
repo = pname;
rev = "v${version}";
hash = "sha256-XAMHQ7n03e10hFcPIUqyCDlRk2uO8dX8Iq0mdY7wRGE=";
};
propagatedBuildInputs = [
aiohttp
];
pythonImportsCheck = [
"pyoctoprintapi"
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
meta = with lib; {
description = "Simple async wrapper around the Octoprint API";
homepage = "https://github.com/rfleming71/pyoctoprintapi";
license = licenses.mit;
maintainers= with maintainers; [ hexa ];
};
}

View file

@ -6942,6 +6942,8 @@ in {
tesseract = pkgs.tesseract4;
};
pyoctoprintapi = callPackage ../development/python-modules/pyoctoprintapi { };
pyodbc = callPackage ../development/python-modules/pyodbc { };
pyogg = callPackage ../development/python-modules/pyogg { };