My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyoctoprintapi/default.nix

47 lines
804 B

{ 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 ];
};
}