2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, psutil
|
|
|
|
, six
|
|
|
|
, future
|
2022-06-26 10:26:21 +00:00
|
|
|
, pytestCheckHook
|
2021-02-05 17:12:51 +00:00
|
|
|
}:
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildPythonPackage rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "pylink-square";
|
2022-09-11 15:47:08 +00:00
|
|
|
version = "0.14.2";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "square";
|
|
|
|
repo = "pylink";
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-09-11 15:47:08 +00:00
|
|
|
hash = "sha256-4jmFU8jlrEAYTAQH+uQCWrzqwKX4onb7Xk4iTYzx9dI=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ psutil six future ];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "pylink" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface for the SEGGER J-Link";
|
2022-06-26 10:26:21 +00:00
|
|
|
homepage = "https://github.com/square/pylink";
|
|
|
|
changelog = "https://github.com/square/pylink/blob/${src.rev}/CHANGELOG.md";
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ dump_stack ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|