diff options
Diffstat (limited to 'pkgs/development/python-modules/greeneye-monitor/default.nix')
-rw-r--r-- | pkgs/development/python-modules/greeneye-monitor/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/greeneye-monitor/default.nix b/pkgs/development/python-modules/greeneye-monitor/default.nix new file mode 100644 index 00000000000..fbc8f62fc0c --- /dev/null +++ b/pkgs/development/python-modules/greeneye-monitor/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, aiohttp +, siobrultech-protocols +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "greeneye-monitor"; + version = "3.0.3"; + + disabled = pythonOlder "3.5"; + + format = "setuptools"; + + src = fetchFromGitHub { + owner = "jkeljo"; + repo = "greeneye-monitor"; + rev = "v${version}"; + hash = "sha256-weZTOVFBlB6TxFs8pLWfyB7WD/bn3ljBjX2tVi1Zc/I="; + }; + + propagatedBuildInputs = [ + aiohttp + siobrultech-protocols + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "greeneye.monitor" ]; + + meta = { + description = "Receive data packets from GreenEye Monitor"; + homepage = "https://github.com/jkeljo/greeneye-monitor"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + }; +} |