From 27ed1b4b1508f3f867d681f00c9d7ff6aa214543 Mon Sep 17 00:00:00 2001 From: Evils Date: Sat, 1 May 2021 16:24:56 +0200 Subject: python.pkgs.i2c-tools: init at i2c-tools.version --- .../python-modules/i2c-tools/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 pkgs/development/python-modules/i2c-tools/default.nix (limited to 'pkgs/development/python-modules/i2c-tools') diff --git a/pkgs/development/python-modules/i2c-tools/default.nix b/pkgs/development/python-modules/i2c-tools/default.nix new file mode 100644 index 000000000000..60af11e24198 --- /dev/null +++ b/pkgs/development/python-modules/i2c-tools/default.nix @@ -0,0 +1,21 @@ +{ lib +, buildPythonPackage +, i2c-tools +}: + +buildPythonPackage rec { + inherit (i2c-tools) pname version src; + + 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 ]; + }; +} -- cgit v1.2.3