1{ lib
2, buildPythonPackage
3, cryptography
4, fetchFromGitHub
5, pythonOlder
6, setuptools
7}:
8
9buildPythonPackage rec {
10 pname = "linknlink";
11 version = "0.1.1";
12 pyproject = true;
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "xuanxuan000";
18 repo = "python-linknlink";
19 rev = "refs/tags/${version}";
20 hash = "sha256-pr0FwNweg7hFcvaOHQyXjIzH1L6Q4q/1llwfdl9k0Sk=";
21 };
22
23 nativeBuildInputs = [
24 setuptools
25 ];
26
27 propagatedBuildInputs = [
28 cryptography
29 ];
30
31 pythonImportsCheck = [
32 "linknlink"
33 ];
34
35 # Module has no test
36 doCheck = false;
37
38 meta = with lib; {
39 description = "Module and CLI for controlling Linklink devices locally";
40 homepage = "https://github.com/xuanxuan000/python-linknlink";
41 changelog = "";
42 license = licenses.mit;
43 maintainers = with maintainers; [ fab ];
44 };
45}