Merge pull request #336794 from jnsgruk/pytouchlinesl

python3Packages.pytouchlinesl: init at 0.1.0
This commit is contained in:
Jon Seager 2024-08-23 16:39:10 +01:00 committed by GitHub
commit a6dd641748
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 53 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };