diff --git a/pkgs/development/python-modules/pyoppleio/default.nix b/pkgs/development/python-modules/pyoppleio/default.nix new file mode 100644 index 000000000000..2503eb5d001f --- /dev/null +++ b/pkgs/development/python-modules/pyoppleio/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, crc16 +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyoppleio"; + version = "1.0.6"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-q//uJ+2m9S0r+Jsa5Eye90YSw4cKzd04vPHMm89j8kg="; + }; + + propagatedBuildInputs = [ + crc16 + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "pyoppleio" + ]; + + meta = with lib; { + description = "Library for interacting with OPPLE lights"; + homepage = "https://github.com/jedmeng/python-oppleio"; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a07866054b74..f9932d89d3a7 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7497,6 +7497,8 @@ in { pyopnsense = callPackage ../development/python-modules/pyopnsense { }; + pyoppleio = callPackage ../development/python-modules/pyoppleio { }; + pyosf = callPackage ../development/python-modules/pyosf { }; pyosmium = callPackage ../development/python-modules/pyosmium {