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
40
pkgs/development/python-modules/bashlex/default.nix
Normal file
40
pkgs/development/python-modules/bashlex/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ enum-compat
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, nose
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bashlex";
|
||||
version = "0.15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "idank";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-kKVorAIKlyC9vUzLOlaZ/JrG1kBBRIvLwBmHNj9nx84=";
|
||||
};
|
||||
|
||||
checkInputs = [ nose ];
|
||||
propagatedBuildInputs = [ enum-compat ];
|
||||
|
||||
# workaround https://github.com/idank/bashlex/issues/51
|
||||
preBuild = ''
|
||||
${python.interpreter} -c 'import bashlex'
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
${python.interpreter} -m nose --with-doctest
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "bashlex" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python parser for bash";
|
||||
license = licenses.gpl3Plus;
|
||||
homepage = "https://github.com/idank/bashlex";
|
||||
maintainers = with maintainers; [ multun ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue