1{ lib
2, authlib
3, buildPythonPackage
4, fetchFromGitHub
5, httpx
6, pytestCheckHook
7, pythonOlder
8, setuptools
9}:
10
11buildPythonPackage rec {
12 pname = "aiosenz";
13 version = "1.0.0";
14 format = "pyproject";
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "milanmeu";
20 repo = pname;
21 rev = version;
22 hash = "sha256-ODdWPS14zzptxuS6mff51f0s1SYnIqjF40DmvT0sL0w=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 ];
28
29 propagatedBuildInputs = [
30 httpx
31 authlib
32 ];
33
34 # Project has no tests
35 doCheck = false;
36
37 pythonImportsCheck = [
38 "aiosenz"
39 ];
40
41 meta = with lib; {
42 description = "Python wrapper for the nVent Raychem SENZ RestAPI";
43 homepage = "https://github.com/milanmeu/aiosenz";
44 license = with licenses; [ lgpl3Plus ];
45 maintainers = with maintainers; [ fab ];
46 };
47}