python3Packages.bme680: 1.1.1 -> 2.0.0

This commit is contained in:
Martin Weinelt
2024-06-24 12:14:46 +02:00
parent 4d6b4d46cd
commit 75f7bef2a0
@@ -2,39 +2,43 @@
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
hatch-fancy-pypi-readme,
# dependencies
smbus2,
# checks
mock,
smbus-cffi,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "bme680";
version = "1.1.1";
format = "setuptools";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pimoroni";
repo = "bme680-python";
rev = "v${version}";
hash = "sha256-gmdRxMJ0DoCyNcb/bYp746PBi4HktHAAYOcSQJ0Uheg=";
rev = "refs/tags/v${version}";
hash = "sha256-ep0dnok/ycEoUAnOK4QmdqdO0r4ttzSoqHDl7aPengE=";
};
propagatedBuildInputs = [ smbus-cffi ];
build-system = [
hatchling
hatch-fancy-pypi-readme
];
preBuild = ''
cd library
'';
dependencies = [ smbus2 ];
nativeCheckInputs = [
mock
pytestCheckHook
];
postPatch = ''
substituteInPlace library/setup.cfg \
--replace "smbus" "smbus-cffi"
'';
pythonImportsCheck = [ "bme680" ];
meta = with lib; {