diff options
author | Timo Kaufmann <timokau@zoho.com> | 2019-01-12 15:08:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-12 15:08:21 +0100 |
commit | b54d9e27cb06a1ffb54587abd016d48a2874b7eb (patch) | |
tree | 8c7055fb16e5977f03f797201669d6c471a9a9ed /pkgs/development/python-modules/pygal | |
parent | baf62522757b5495e406717991e3c5a1b3509491 (diff) | |
download | nixpkgs-b54d9e27cb06a1ffb54587abd016d48a2874b7eb.tar nixpkgs-b54d9e27cb06a1ffb54587abd016d48a2874b7eb.tar.gz nixpkgs-b54d9e27cb06a1ffb54587abd016d48a2874b7eb.tar.bz2 nixpkgs-b54d9e27cb06a1ffb54587abd016d48a2874b7eb.tar.lz nixpkgs-b54d9e27cb06a1ffb54587abd016d48a2874b7eb.tar.xz nixpkgs-b54d9e27cb06a1ffb54587abd016d48a2874b7eb.tar.zst nixpkgs-b54d9e27cb06a1ffb54587abd016d48a2874b7eb.zip |
python.pkgs.pygal: fix build (#53833)
`pytestrunner` is a required build input. Also we need to explicitly set the locale to pass the tests on darwin.
Diffstat (limited to 'pkgs/development/python-modules/pygal')
-rw-r--r-- | pkgs/development/python-modules/pygal/default.nix | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pygal/default.nix b/pkgs/development/python-modules/pygal/default.nix index 8336640443b..b0d533f5d68 100644 --- a/pkgs/development/python-modules/pygal/default.nix +++ b/pkgs/development/python-modules/pygal/default.nix @@ -5,6 +5,7 @@ , flask , pyquery , pytest +, pytestrunner , cairosvg , tinycss , cssselect @@ -22,7 +23,24 @@ buildPythonPackage rec { sha256 = "9204f05380b02a8a32f9bf99d310b51aa2a932cba5b369f7a4dc3705f0a4ce83"; }; - buildInputs = [ flask pyquery pytest ]; + buildInputs = [ + flask + pyquery + + # Should be a check input, but upstream lists it under "setup_requires". + # https://github.com/Kozea/pygal/issues/430 + pytestrunner + ]; + + checkInputs = [ + pytest + ]; + + preCheck = '' + # necessary on darwin to pass the testsuite + export LANG=en_US.UTF-8 + ''; + propagatedBuildInputs = [ cairosvg tinycss cssselect ] ++ stdenv.lib.optionals (!isPyPy) [ lxml ]; |