nixpkgs/pkgs/development/python-modules/pytouchlinesl/default.nix

45 lines
902 B
Nix

{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
lib,
pydantic,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "pytouchlinesl";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jnsgruk";
repo = "pytouchlinesl";
tag = version;
hash = "sha256-o9/K+0ADbU9qTtjLCGM2+aBQsQDP22qdwsgimo9oKns=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
pydantic
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
];
pythonImportsCheck = [ "pytouchlinesl" ];
meta = {
description = "Python API client for Roth's TouchlineSL API";
homepage = "https://github.com/jnsgruk/pytouchlinesl";
changelog = "https://github.com/jnsgruk/pytouchlinesl/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ jnsgruk ];
};
}