mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
Merge pull request #282896 from fabaff/airthings-ble-bump
python311Packages.airthings-ble: 0.5.6-4 -> 0.6.0
This commit is contained in:
commit
6a99402397
|
@ -1,16 +1,18 @@
|
||||||
{ lib
|
{ lib
|
||||||
|
, async-interrupt
|
||||||
, bleak
|
, bleak
|
||||||
, bleak-retry-connector
|
, bleak-retry-connector
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "airthings-ble";
|
pname = "airthings-ble";
|
||||||
version = "0.5.6-4";
|
version = "0.6.0";
|
||||||
format = "pyproject";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
|
@ -18,12 +20,12 @@ buildPythonPackage rec {
|
||||||
owner = "vincegio";
|
owner = "vincegio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-Ft5A2ZGVH9VHoRDAqDcc0rBfnQRxoXMylCAwUSwmViE=";
|
hash = "sha256-T+KtB6kPrLahI73W/Bb3A9ws91v4n1EtURgm3RcLzW8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace pyproject.toml \
|
substituteInPlace pyproject.toml \
|
||||||
--replace 'bleak-retry-connector = "^0.15.1"' 'bleak = "*"'
|
--replace "-v -Wdefault --cov=airthings_ble --cov-report=term-missing:skip-covered" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -31,12 +33,14 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
async-interrupt
|
||||||
bleak
|
bleak
|
||||||
bleak-retry-connector
|
bleak-retry-connector
|
||||||
];
|
];
|
||||||
|
|
||||||
# Module has no tests
|
nativeCheckInputs = [
|
||||||
doCheck = false;
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"airthings_ble"
|
"airthings_ble"
|
||||||
|
|
Loading…
Reference in a new issue