python311Packages.mopeka-iot-ble: modernize

This commit is contained in:
Fabian Affolter
2023-11-18 09:29:50 +01:00
committed by GitHub
parent 8a4846b795
commit 66771f553a
@@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "mopeka-iot-ble";
version = "0.5.0";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -24,6 +24,11 @@ buildPythonPackage rec {
hash = "sha256-m27As3tB77JbgY0kDDJ6kmYFTv2O/Sh6y9tFiKDIjbI=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=mopeka_iot_ble --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
@@ -39,11 +44,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=mopeka_iot_ble --cov-report=term-missing:skip-covered" ""
'';
pythonImportsCheck = [
"mopeka_iot_ble"
];