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
48
pkgs/development/python-modules/brotlicffi/default.nix
Normal file
48
pkgs/development/python-modules/brotlicffi/default.nix
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, cffi
|
||||
, brotli
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "brotlicffi";
|
||||
version = "1.0.9.2";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-hyper";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "0qx7an7772brmx1rbbrqzqnkqqvicc70mx740nl31kzzyv4jjs00";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
brotli
|
||||
];
|
||||
|
||||
propagatedNativeBuildInputs = [
|
||||
cffi
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cffi
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
export USE_SHARED_BROTLI=1
|
||||
'';
|
||||
|
||||
# Test data is not available, only when using libbrotli git checkout
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "brotlicffi" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python CFFI bindings to the Brotli library";
|
||||
homepage = "https://github.com/python-hyper/brotlicffi";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue