2021-12-19 01:06:50 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
# propagated
|
|
|
|
, aiohttp
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "pyoctoprintapi";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.1.11";
|
2021-12-19 01:06:50 +00:00
|
|
|
in
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit pname version;
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rfleming71";
|
|
|
|
repo = pname;
|
2022-10-06 18:32:54 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-MlFL8yUCkiMnxPbMGr4jwCs0kYwRM+VGBRQUcQ5Hd6A=";
|
2021-12-19 01:06:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyoctoprintapi"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-19 01:06:50 +00:00
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple async wrapper around the Octoprint API";
|
|
|
|
homepage = "https://github.com/rfleming71/pyoctoprintapi";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/rfleming71/pyoctoprintapi/releases/tag/v${version}";
|
2021-12-19 01:06:50 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers= with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|