diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2018-07-23 16:45:58 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2018-07-23 17:40:20 +0100 |
commit | 272f02415c5c2d92ff5d20c5353cb87e3e03ae32 (patch) | |
tree | 39ffb61f3d594b70edc280473669dace9c66a017 /pkgs/development/python-modules/black | |
parent | b894b7478bfb5f7ec3063cada6ddd75f56f80aac (diff) |
python3.pkgs.black: 18.4a0 -> 18.6b4
Diffstat (limited to 'pkgs/development/python-modules/black')
-rw-r--r-- | pkgs/development/python-modules/black/default.nix | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index f48310ceebc65..b95ed080e66a4 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -1,17 +1,28 @@ -{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, attrs, click }: +{ stdenv, buildPythonPackage, fetchPypi, pythonOlder +, attrs, click, toml, appdirs +, glibcLocales, pytest }: buildPythonPackage rec { pname = "black"; - version = "18.4a0"; + version = "18.6b4"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "04dffr4wmzs4vf2xj0cxp03hv04x0kk06qyzx6jjrp1mq0z3n2rr"; + sha256 = "0i4sfqgz6w15vd50kbhi7g7rifgqlf8yfr8y78rypd56q64qn592"; }; - propagatedBuildInputs = [ attrs click ]; + checkInputs = [ pytest glibcLocales ]; + + checkPhase = '' + # no idea, why those fail. + LC_ALL="en_US.UTF-8" HOME="$NIX_BUILD_TOP" \ + pytest \ + -k "not test_cache_multiple_files and not test_failed_formatting_does_not_get_cached" + ''; + + propagatedBuildInputs = [ attrs appdirs click toml ]; meta = with stdenv.lib; { description = "The uncompromising Python code formatter"; |