nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "linknlink";
11 version = "0.2.4";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "xuanxuan000";
16 repo = "python-linknlink";
17 tag = version;
18 hash = "sha256-ObPEcdDHi+SPFjuVKBtu7/5/IgHcam+IWblxxS3+mmI=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ cryptography ];
24
25 pythonImportsCheck = [ "linknlink" ];
26
27 # Module has no test
28 doCheck = false;
29
30 meta = {
31 description = "Module and CLI for controlling Linklink devices locally";
32 homepage = "https://github.com/xuanxuan000/python-linknlink";
33 changelog = "https://github.com/xuanxuan000/python-linknlink/releases/tag/${version}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}