1{ lib
2, buildPythonPackage
3, fetchPypi
4, fetchFromGitHub
5, mock
6, psutil
7, six
8, future
9, pytestCheckHook
10}:
11
12buildPythonPackage rec {
13 pname = "pylink-square";
14 version = "1.1.0";
15
16 format = "setuptools";
17
18 src = fetchFromGitHub {
19 owner = "square";
20 repo = "pylink";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-pICSU33n/oH+LRbWNYOdnTaa5qAGRRXWsO1NjO4ylzw=";
23 };
24
25 propagatedBuildInputs = [ psutil six future ];
26
27 nativeCheckInputs = [
28 mock
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "pylink" ];
33
34 meta = with lib; {
35 description = "Python interface for the SEGGER J-Link";
36 homepage = "https://github.com/square/pylink";
37 changelog = "https://github.com/square/pylink/blob/${src.rev}/CHANGELOG.md";
38 maintainers = with maintainers; [ dump_stack ];
39 license = licenses.asl20;
40 };
41}