at master 767 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "smbus2"; 11 version = "0.5.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "kplindegaard"; 18 repo = "smbus2"; 19 tag = version; 20 hash = "sha256-3ZAjviVLO/c27NzrPcWf6RlZYclYkmUmOskTP9TVbNM="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "smbus2" ]; 26 27 meta = with lib; { 28 description = "Drop-in replacement for smbus-cffi/smbus-python"; 29 homepage = "https://smbus2.readthedocs.io/"; 30 changelog = "https://github.com/kplindegaard/smbus2/blob/${version}/CHANGELOG.md"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ fab ]; 33 }; 34}