159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
mock,
|
|
psutil,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylink-square";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "square";
|
|
repo = "pylink";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-4tdtyb0AjsAmFOPdkxbbro8PH3akC5uihN59lgijhkc=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
psutil
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "pylink" ];
|
|
|
|
disabledTests = [
|
|
# AttributeError: 'called_once_with' is not a valid assertion
|
|
"test_cp15_register_write_success"
|
|
"test_jlink_restarted"
|
|
"test_set_log_file_success"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface for the SEGGER J-Link";
|
|
homepage = "https://github.com/square/pylink";
|
|
changelog = "https://github.com/square/pylink/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ dump_stack ];
|
|
};
|
|
}
|