bash-completion: 2.8 -> 2.9
This commit is contained in:
parent
a74f98051b
commit
12fd773ff0
@ -1,15 +1,36 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, python3Packages
|
||||||
|
, bashInteractive
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bash-completion";
|
pname = "bash-completion";
|
||||||
version = "2.8";
|
version = "2.9";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/scop/bash-completion/releases/download/${version}/${pname}-${version}.tar.xz";
|
owner = "scop";
|
||||||
sha256 = "0kgmflrr1ga9wfk770vmakna3nj46ylb5ky9ipd0v2k9ymq5a7y0";
|
repo = "bash-completion";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1813r4jxfa2zgzm2ppjhrq62flfmxai8433pklxcrl4fp5wwx9yv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
checkInputs = [
|
||||||
|
python3Packages.pexpect
|
||||||
|
python3Packages.pytest
|
||||||
|
bashInteractive
|
||||||
|
];
|
||||||
|
|
||||||
|
# ignore ip_addresses because it tries to touch network
|
||||||
|
# ignore test_ls because impure logic
|
||||||
|
checkPhase = ''
|
||||||
|
pytest . \
|
||||||
|
--ignore=test/t/unit/test_unit_ip_addresses.py \
|
||||||
|
--ignore=test/t/test_ls.py
|
||||||
|
'';
|
||||||
|
|
||||||
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||||
sed -i -e 's/readlink -f/readlink/g' bash_completion completions/*
|
sed -i -e 's/readlink -f/readlink/g' bash_completion completions/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user