uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
49
pkgs/development/python-modules/smbus-cffi/default.nix
Normal file
49
pkgs/development/python-modules/smbus-cffi/default.nix
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cffi
|
||||
, pytestCheckHook
|
||||
, pyserial
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "smbus-cffi";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "fb4195aaabfc01586863f60d3190b5cb1bf8f12622fd597e23e48768dad6bde8";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/bivab/smbus-cffi/pull/24
|
||||
(fetchpatch {
|
||||
url = "https://github.com/bivab/smbus-cffi/commit/ba79ae174a9d84e767d95f165c43ee212b1bbb92.patch";
|
||||
sha256 = "sha256-WtRuK5y6fWDEhm0Xy5XqS5yCkn7vXXYtjlOjS90gla4=";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedNativeBuildInputs = [ cffi ];
|
||||
|
||||
propagatedBuildInputs = [ cffi ];
|
||||
|
||||
installCheckPhase = ''
|
||||
# we want to import the installed module that also contains the compiled library
|
||||
rm -rf smbus
|
||||
runHook pytestCheckPhase
|
||||
'';
|
||||
|
||||
# requires hardware access
|
||||
pytestFlagsArray = [ "--ignore=test/test_smbus_integration.py" ];
|
||||
|
||||
checkInputs = [ pytestCheckHook pyserial ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module for SMBus access through Linux I2C /dev interface";
|
||||
homepage = "https://github.com/bivab/smbus-cffi";
|
||||
license = licenses.gpl2;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue