1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/thefuck/default.nix
2018-05-22 22:01:26 +02:00

38 lines
956 B
Nix

{ stdenv, fetchFromGitHub, buildPythonApplication
, colorama, decorator, psutil, pyte, six
, pytest, pytest-mock
}:
buildPythonApplication rec {
pname = "thefuck";
version = "3.27";
src = fetchFromGitHub {
owner = "nvbn";
repo = "${pname}";
rev = version;
sha256 = "1lsg0g9lnpj2nidggm16b7jm4xzhg0dgy81crfzny62hah1zk0pj";
};
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 ];
};
}