about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/i2c-tools/default.nix
blob: 60af11e2419845ca8fb6fc5d71003548b97d9cd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 ];
  };
}