python311Packages.bluetooth-auto-recovery: refactor

This commit is contained in:
Fabian Affolter
2024-03-14 08:09:57 +01:00
parent 40409d4ab2
commit 916a71187a
@@ -14,17 +14,22 @@
buildPythonPackage rec {
pname = "bluetooth-auto-recovery";
version = "1.4.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "Bluetooth-Devices";
repo = pname;
repo = "bluetooth-auto-recovery";
rev = "refs/tags/v${version}";
hash = "sha256-fXR7leW+eXaQZ22IyeVhpS5/MOnuAiunUGMdtfVrlos=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail " --cov=bluetooth_auto_recovery --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
@@ -41,11 +46,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=bluetooth_auto_recovery --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"bluetooth_auto_recovery"
];