7cbf00847c
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/thefuck/versions. These checks were done: - built on NixOS - ran ‘/nix/store/p0waa9llvgzfvjv05vgwvsic2xlkm4jr-thefuck-3.26/bin/.thefuck-wrapped -h’ got 0 exit code - ran ‘/nix/store/p0waa9llvgzfvjv05vgwvsic2xlkm4jr-thefuck-3.26/bin/.thefuck-wrapped --help’ got 0 exit code - ran ‘/nix/store/p0waa9llvgzfvjv05vgwvsic2xlkm4jr-thefuck-3.26/bin/thefuck -h’ got 0 exit code - ran ‘/nix/store/p0waa9llvgzfvjv05vgwvsic2xlkm4jr-thefuck-3.26/bin/thefuck --help’ got 0 exit code - found 3.26 with grep in /nix/store/p0waa9llvgzfvjv05vgwvsic2xlkm4jr-thefuck-3.26 - directory tree listing: https://gist.github.com/7fd81df3f197603f76bdf8c0ae663dcb
38 lines
956 B
Nix
38 lines
956 B
Nix
{ stdenv, fetchFromGitHub, buildPythonApplication
|
|
, colorama, decorator, psutil, pyte, six
|
|
, pytest, pytest-mock
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "thefuck";
|
|
version = "3.26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nvbn";
|
|
repo = "${pname}";
|
|
rev = version;
|
|
sha256 = "0iyihbp94z38xajy8yfbn3ky7irnam1zwyswg34cw4kkfgggrwhz";
|
|
};
|
|
|
|
propagatedBuildInputs = [ colorama decorator psutil pyte six ];
|
|
|
|
checkInputs = [ pytest pytest-mock ];
|
|
|
|
checkPhase = ''
|
|
export HOME=$TMPDIR
|
|
export LANG=en_US.UTF-8
|
|
export XDG_CACHE_HOME=$TMPDIR/cache
|
|
export XDG_CONFIG_HOME=$TMPDIR/config
|
|
py.test
|
|
'';
|
|
|
|
doCheck = false; # The above is only enough for tests to pass outside the sandbox.
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/nvbn/thefuck;
|
|
description = "Magnificent app which corrects your previous console command.";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ma27 ];
|
|
};
|
|
}
|