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
58
pkgs/development/python-modules/llfuse/default.nix
Normal file
58
pkgs/development/python-modules/llfuse/default.nix
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, contextlib2
|
||||
, cython
|
||||
, fuse
|
||||
, pkg-config
|
||||
, pytestCheckHook
|
||||
, python
|
||||
, which
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "llfuse";
|
||||
version = "1.4.2";
|
||||
|
||||
disabled = pythonOlder "3.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-llfuse";
|
||||
repo = "python-llfuse";
|
||||
rev = "release-${version}";
|
||||
hash = "sha256-TnZnv439fLvg0WM96yx0dPSSz8Mrae6GDC9LiLFrgQ8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython pkg-config ];
|
||||
|
||||
buildInputs = [ fuse ];
|
||||
|
||||
propagatedBuildInputs = [ contextlib2 ];
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pkg-config'" "'${stdenv.cc.targetPrefix}pkg-config'"
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
${python.pythonForBuild.interpreter} setup.py build_cython
|
||||
'';
|
||||
|
||||
# On Darwin, the test requires macFUSE to be installed outside of Nix.
|
||||
doCheck = !stdenv.isDarwin;
|
||||
checkInputs = [ pytestCheckHook which ];
|
||||
|
||||
disabledTests = [
|
||||
"test_listdir" # accesses /usr/bin
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for the low-level FUSE API";
|
||||
homepage = "https://github.com/python-llfuse/python-llfuse";
|
||||
license = licenses.lgpl2Plus;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ bjornfor dotlambda ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue