10 buildPythonPackage rec {
15 inherit pname version;
16 sha256 = "fb4195aaabfc01586863f60d3190b5cb1bf8f12622fd597e23e48768dad6bde8";
20 # https://github.com/bivab/smbus-cffi/pull/24
22 url = "https://github.com/bivab/smbus-cffi/commit/ba79ae174a9d84e767d95f165c43ee212b1bbb92.patch";
23 sha256 = "sha256-WtRuK5y6fWDEhm0Xy5XqS5yCkn7vXXYtjlOjS90gla4=";
27 propagatedNativeBuildInputs = [ cffi ];
29 propagatedBuildInputs = [ cffi ];
31 installCheckPhase = ''
32 # we want to import the installed module that also contains the compiled library
34 runHook pytestCheckPhase
37 # requires hardware access
38 pytestFlagsArray = [ "--ignore=test/test_smbus_integration.py" ];
40 checkInputs = [ pytestCheckHook pyserial ];
43 description = "Python module for SMBus access through Linux I2C /dev interface";
44 homepage = "https://github.com/bivab/smbus-cffi";
45 license = licenses.gpl2;
46 maintainers = with maintainers; [ mic92 ];
47 platforms = platforms.linux;