python312Packages.pygatt: 4.0.5 -> 5.0.0
Diff: https://github.com/peplin/pygatt/compare/refs/tags/v4.0.5...v5.0.0 Changelog: https://github.com/peplin/pygatt/blob/v5.0.0/CHANGELOG.rst
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
mock,
|
||||
nose,
|
||||
pexpect,
|
||||
pyserial,
|
||||
pytestCheckHook,
|
||||
@@ -13,40 +12,33 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygatt";
|
||||
version = "4.0.5";
|
||||
version = "5.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "peplin";
|
||||
repo = "pygatt";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-DUZGsztZViVNZwmhXoRN5FOQ7BgUeI0SsYgCHlvsrv0=";
|
||||
hash = "sha256-TMIqC+JvNOLU38a9jkacRAbdmAAd4UekFUDRoAWhHFo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Not support for Python < 3.4
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "'enum-compat'" "" \
|
||||
--replace-fail "'coverage >= 3.7.1'," "" \
|
||||
--replace-fail "'nose >= 1.3.7'" ""
|
||||
substituteInPlace tests/bgapi/test_bgapi.py \
|
||||
--replace-fail "assertEquals" "assertEqual"
|
||||
--replace-fail "setup_requires" "test_requires"
|
||||
'';
|
||||
|
||||
pythonRemoveDeps = [ "enum-compat" ];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ pyserial ];
|
||||
|
||||
optional-dependencies.GATTTOOL = [ pexpect ];
|
||||
|
||||
# tests require nose
|
||||
doCheck = pythonOlder "3.12";
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
nose
|
||||
pytestCheckHook
|
||||
] ++ optional-dependencies.GATTTOOL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user