nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 760 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "smbus2"; 11 version = "0.6.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "kplindegaard"; 16 repo = "smbus2"; 17 tag = version; 18 hash = "sha256-GoXSDUmMnrJAfQ8EfCP5bdkq5g0nKLRHcvou5c6vZGU="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "smbus2" ]; 26 27 meta = { 28 description = "Drop-in replacement for smbus-cffi/smbus-python"; 29 homepage = "https://smbus2.readthedocs.io/"; 30 changelog = "https://github.com/kplindegaard/smbus2/blob/${src.tag}/CHANGELOG.md"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ fab ]; 33 }; 34}