mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
Merge pull request #126322 from fabaff/bump-bme680
python3Packages.bme680: 1.0.5 -> 1.1.1
This commit is contained in:
commit
c58707d2b3
@ -1,30 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, smbus-cffi
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bme680";
|
||||
version = "1.0.5";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pimoroni";
|
||||
repo = "bme680-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-oIXh1JnGTI/Cj4MQFpWq+sWR2X+ioCsK0Q+T7wPITCQ=";
|
||||
sha256 = "sha256-gmdRxMJ0DoCyNcb/bYp746PBi4HktHAAYOcSQJ0Uheg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ smbus-cffi ];
|
||||
propagatedBuildInputs = [
|
||||
smbus-cffi
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
cd library
|
||||
'';
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# next release will have tests, but not the current one
|
||||
doCheck = false;
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace library/setup.cfg \
|
||||
--replace "smbus" "smbus-cffi"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "bme680" ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user