diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-11-30 20:17:04 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-12-12 21:36:14 +0100 |
commit | b27d0da9d87ed6bc65a4c677e8cb9f4ebd410234 (patch) | |
tree | 70817574ba1638d378ffce9862699105e1b5d81e /pkgs/development/python-modules/pyoctoprintapi | |
parent | a7c898f5f43bc5ae65f61b49a5ae3a0316fdbcaf (diff) |
python3Packages.pyoctoprintapi: init at 0.1.7
Diffstat (limited to 'pkgs/development/python-modules/pyoctoprintapi')
-rw-r--r-- | pkgs/development/python-modules/pyoctoprintapi/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyoctoprintapi/default.nix b/pkgs/development/python-modules/pyoctoprintapi/default.nix new file mode 100644 index 0000000000000..323d2c092f8dd --- /dev/null +++ b/pkgs/development/python-modules/pyoctoprintapi/default.nix @@ -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 ]; + }; +} |