1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/tools/misc/thefuck/default.nix

38 lines
950 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, buildPythonApplication
2017-12-14 17:31:25 +00:00
, colorama, decorator, psutil, pyte, six
, pytest, pytest-mock
}:
2017-06-14 09:57:38 +01:00
2017-12-14 17:31:25 +00:00
buildPythonApplication rec {
2017-06-14 09:57:38 +01:00
pname = "thefuck";
version = "3.30";
2017-06-14 09:57:38 +01:00
2017-12-14 17:31:25 +00:00
src = fetchFromGitHub {
owner = "nvbn";
2019-09-09 00:38:31 +01:00
repo = pname;
2017-12-14 17:31:25 +00:00
rev = version;
sha256 = "0fnf78956pwhb9cgv1jmgypnkma5xzflkivfrkfiadbgin848yfg";
2017-06-14 09:57:38 +01:00
};
2017-12-14 17:31:25 +00:00
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.
2017-06-14 09:57:38 +01:00
meta = with lib; {
homepage = "https://github.com/nvbn/thefuck";
description = "Magnificent app which corrects your previous console command";
2017-06-14 09:57:38 +01:00
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
};
}