c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
56 lines
1,021 B
Nix
56 lines
1,021 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, setuptools
|
|
|
|
# propagated
|
|
, aiohttp
|
|
|
|
# tests
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
let
|
|
pname = "pyoctoprintapi";
|
|
version = "0.1.12";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rfleming71";
|
|
repo = "pyoctoprintapi";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Jf/zYnBHVl3TYxFy9Chy6qNH/eCroZkmUOEWfd62RIo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyoctoprintapi"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple async wrapper around the Octoprint API";
|
|
homepage = "https://github.com/rfleming71/pyoctoprintapi";
|
|
changelog = "https://github.com/rfleming71/pyoctoprintapi/releases/tag/v${version}";
|
|
license = licenses.mit;
|
|
maintainers= with maintainers; [ hexa ];
|
|
};
|
|
}
|