nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 aiohttp,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lib,
6 pydantic,
7 pytest-asyncio,
8 pytestCheckHook,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pytouchlinesl";
14 version = "0.5.0";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "jnsgruk";
19 repo = "pytouchlinesl";
20 tag = version;
21 hash = "sha256-R5XgH8A9P5KcjQL/f+E189A+iRVUIbWsmyRrnfV43v4=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 aiohttp
28 pydantic
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytest-asyncio
34 ];
35
36 pythonImportsCheck = [ "pytouchlinesl" ];
37
38 meta = {
39 description = "Python API client for Roth's TouchlineSL API";
40 homepage = "https://github.com/jnsgruk/pytouchlinesl";
41 changelog = "https://github.com/jnsgruk/pytouchlinesl/releases/tag/${version}";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [ jnsgruk ];
44 };
45}