mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #148050 from mweinelt/python/pyoctoprintapi
This commit is contained in:
commit
ea11136279
47
pkgs/development/python-modules/pyoctoprintapi/default.nix
Normal file
47
pkgs/development/python-modules/pyoctoprintapi/default.nix
Normal file
@ -0,0 +1,47 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
|
||||
# propagated
|
||||
, aiohttp
|
||||
|
||||
# tests
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "pyoctoprintapi";
|
||||
version = "0.1.7";
|
||||
in
|
||||
buildPythonPackage {
|
||||
inherit pname version;
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rfleming71";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-XAMHQ7n03e10hFcPIUqyCDlRk2uO8dX8Iq0mdY7wRGE=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -597,7 +597,7 @@
|
||||
"nzbget" = ps: with ps; [ ]; # missing inputs: pynzbgetapi
|
||||
"oasa_telematics" = ps: with ps; [ ]; # missing inputs: oasatelematics
|
||||
"obihai" = ps: with ps; [ pyobihai ];
|
||||
"octoprint" = ps: with ps; [ ]; # missing inputs: pyoctoprintapi
|
||||
"octoprint" = ps: with ps; [ pyoctoprintapi ];
|
||||
"oem" = ps: with ps; [ oemthermostat ];
|
||||
"ohmconnect" = ps: with ps; [ defusedxml ];
|
||||
"ombi" = ps: with ps; [ pyombi ];
|
||||
|
@ -658,6 +658,7 @@ in with py.pkgs; buildPythonApplication rec {
|
||||
"number"
|
||||
"nws"
|
||||
"nx584"
|
||||
"octoprint"
|
||||
"omnilogic"
|
||||
"onboarding"
|
||||
"ondilo_ico"
|
||||
|
@ -6942,6 +6942,8 @@ in {
|
||||
tesseract = pkgs.tesseract4;
|
||||
};
|
||||
|
||||
pyoctoprintapi = callPackage ../development/python-modules/pyoctoprintapi { };
|
||||
|
||||
pyodbc = callPackage ../development/python-modules/pyodbc { };
|
||||
|
||||
pyogg = callPackage ../development/python-modules/pyogg { };
|
||||
|
Loading…
Reference in New Issue
Block a user