parent
8a11e0d133
commit
9f5b8aaec4
@ -1,22 +1,32 @@
|
|||||||
{ fetchurl, stdenv, pkgs, ... }:
|
{ stdenv, fetchFromGitHub, buildPythonApplication
|
||||||
|
, colorama, decorator, psutil, pyte, six
|
||||||
|
, pytest, pytest-mock
|
||||||
|
}:
|
||||||
|
|
||||||
pkgs.pythonPackages.buildPythonPackage rec {
|
buildPythonApplication rec {
|
||||||
name = "${pname}-${version}";
|
|
||||||
pname = "thefuck";
|
pname = "thefuck";
|
||||||
version = "3.18";
|
version = "3.25";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/nvbn/${pname}/archive/${version}.tar.gz";
|
owner = "nvbn";
|
||||||
sha256 = "1xsvkqh89rgxq5w03mnlcfkn9y39nfwhb2pjabjspcc2mi2mq5y6";
|
repo = "${pname}";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "090mg809aac932lgqmjxm4za53lg3bjprj562sp189k47xs4wijv";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pkgs.pythonPackages; [
|
propagatedBuildInputs = [ colorama decorator psutil pyte six ];
|
||||||
psutil
|
|
||||||
colorama
|
checkInputs = [ pytest pytest-mock ];
|
||||||
six
|
|
||||||
decorator
|
checkPhase = ''
|
||||||
pathlib2
|
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; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/nvbn/thefuck;
|
homepage = https://github.com/nvbn/thefuck;
|
||||||
|
@ -4716,7 +4716,7 @@ with pkgs;
|
|||||||
|
|
||||||
thc-hydra = callPackage ../tools/security/thc-hydra { };
|
thc-hydra = callPackage ../tools/security/thc-hydra { };
|
||||||
|
|
||||||
thefuck = callPackage ../tools/misc/thefuck { };
|
thefuck = python3Packages.callPackage ../tools/misc/thefuck { };
|
||||||
|
|
||||||
thin-provisioning-tools = callPackage ../tools/misc/thin-provisioning-tools { };
|
thin-provisioning-tools = callPackage ../tools/misc/thin-provisioning-tools { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user