diff --git a/pkgs/development/python-modules/pytouchlinesl/default.nix b/pkgs/development/python-modules/pytouchlinesl/default.nix new file mode 100644 index 000000000000..5e77a4dd17e3 --- /dev/null +++ b/pkgs/development/python-modules/pytouchlinesl/default.nix @@ -0,0 +1,51 @@ +{ + aiohttp, + buildPythonPackage, + fetchFromGitHub, + lib, + nix-update-script, + pydantic, + pytest-asyncio, + pytestCheckHook, + pythonOlder, + setuptools, +}: + +buildPythonPackage rec { + pname = "pytouchlinesl"; + version = "0.1.1"; + pyproject = true; + + disabled = pythonOlder "3.10"; + + src = fetchFromGitHub { + owner = "jnsgruk"; + repo = "pytouchlinesl"; + rev = "refs/tags/${version}"; + hash = "sha256-xyAy5QtNox1ZeXGQEYXWiEIQKSNQSnRTqr0kgQRmdcg="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + aiohttp + pydantic + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-asyncio + ]; + + pythonImportsCheck = [ "pytouchlinesl" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "A Python API client for Roth's TouchlineSL API"; + homepage = "https://github.com/jnsgruk/pytouchlinesl"; + changelog = "https://github.com/jnsgruk/pytouchlinesl/releases/tag/${src.rev}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ jnsgruk ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1f291567bd9a..1923ce736ba0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10606,6 +10606,8 @@ self: super: with self; { pytomorrowio = callPackage ../development/python-modules/pytomorrowio { }; + pytouchlinesl = callPackage ../development/python-modules/pytouchlinesl { }; + pyuca = callPackage ../development/python-modules/pyuca { }; pyunpack = callPackage ../development/python-modules/pyunpack { };