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/klaus/default.nix
Normal file
40
pkgs/development/python-modules/klaus/default.nix
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, six, flask, pygments, dulwich, httpauth, humanize, pytest, requests, python-ctags3, mock }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "klaus";
|
||||
version = "1.5.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jonashaag";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "12b96jgiv9y7zmkqqj3dh0fbbm3ps8gbqk925qrhh56zqjl66kx2";
|
||||
};
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace runtests.sh \
|
||||
--replace "mkdir -p \$builddir" "mkdir -p \$builddir && pwd"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
six flask pygments dulwich httpauth humanize
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest requests python-ctags3
|
||||
] ++ lib.optional (!isPy3k) mock;
|
||||
|
||||
checkPhase = ''
|
||||
./runtests.sh
|
||||
'';
|
||||
|
||||
# Needs to set up some git repos
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "The first Git web viewer that Just Works";
|
||||
homepage = "https://github.com/jonashaag/klaus";
|
||||
license = licenses.isc;
|
||||
maintainers = with maintainers; [ pSub ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue