2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
i2c-tools,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
inherit (i2c-tools) pname version src;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = [ i2c-tools ];
|
|
|
|
|
|
|
|
preConfigure = "cd py-smbus";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
inherit (i2c-tools.meta) homepage platforms;
|
|
|
|
|
|
|
|
description = "wrapper for i2c-tools' smbus stuff";
|
|
|
|
# from py-smbus/smbusmodule.c
|
|
|
|
license = [ licenses.gpl2Only ];
|
|
|
|
maintainers = [ maintainers.evils ];
|
|
|
|
};
|
|
|
|
}
|