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
47
pkgs/development/python-modules/bme680/default.nix
Normal file
47
pkgs/development/python-modules/bme680/default.nix
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, mock
|
||||
, smbus-cffi
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bme680";
|
||||
version = "1.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pimoroni";
|
||||
repo = "bme680-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-gmdRxMJ0DoCyNcb/bYp746PBi4HktHAAYOcSQJ0Uheg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
smbus-cffi
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
cd library
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace library/setup.cfg \
|
||||
--replace "smbus" "smbus-cffi"
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "bme680" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for driving the Pimoroni BME680 Breakout";
|
||||
homepage = "https://github.com/pimoroni/bme680-python";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue