depot/third_party/nixpkgs/pkgs/development/python-modules/pyoctoprintapi/default.nix
Default email 871149a62e Project import generated by Copybara.
GitOrigin-RevId: 7f9b6e2babf232412682c09e57ed666d8f84ac2d
2022-02-21 09:47:16 +01:00

47 lines
804 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# propagated
, aiohttp
# tests
, pytest-asyncio
, pytestCheckHook
}:
let
pname = "pyoctoprintapi";
version = "0.1.8";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
src = fetchFromGitHub {
owner = "rfleming71";
repo = pname;
rev = "v${version}";
hash = "sha256-TeMgEwKVZd0gq8J0kYsg0/v6A2BVTOE0/VmyiyrjV5c=";
};
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 ];
};
}