2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-07-27 06:49:29 +00:00
|
|
|
|
|
|
|
# build-system
|
|
|
|
hatchling,
|
|
|
|
hatch-fancy-pypi-readme,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
smbus2,
|
|
|
|
|
|
|
|
# checks
|
2024-06-05 15:53:02 +00:00
|
|
|
mock,
|
|
|
|
pytestCheckHook,
|
2020-11-09 15:59:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bme680";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
pyproject = true;
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pimoroni";
|
|
|
|
repo = "bme680-python";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ep0dnok/ycEoUAnOK4QmdqdO0r4ttzSoqHDl7aPengE=";
|
2020-11-09 15:59:12 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
hatchling
|
|
|
|
hatch-fancy-pypi-readme
|
|
|
|
];
|
2020-11-09 15:59:12 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [ smbus2 ];
|
2020-11-09 15:59:12 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
pythonImportsCheck = [ "bme680" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for driving the Pimoroni BME680 Breakout";
|
|
|
|
homepage = "https://github.com/pimoroni/bme680-python";
|
|
|
|
license = licenses.mit;
|
2020-12-03 08:41:04 +00:00
|
|
|
platforms = platforms.linux;
|
2020-11-09 15:59:12 +00:00
|
|
|
maintainers = with maintainers; [ mic92 ];
|
|
|
|
};
|
|
|
|
}
|