mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
7e30a75acd
Diff: https://github.com/rfleming71/pyoctoprintapi/compare/refs/tags/v0.1.11...v0.1.12 Changelog: https://github.com/rfleming71/pyoctoprintapi/releases/tag/v0.1.12
49 lines
910 B
Nix
49 lines
910 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
|
|
# propagated
|
|
, aiohttp
|
|
|
|
# tests
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
let
|
|
pname = "pyoctoprintapi";
|
|
version = "0.1.12";
|
|
in
|
|
buildPythonPackage {
|
|
inherit pname version;
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rfleming71";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-Jf/zYnBHVl3TYxFy9Chy6qNH/eCroZkmUOEWfd62RIo=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|