mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-10 14:14:20 +00:00
![Guillaume Girol](/assets/img/avatar_default.png)
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
848 B
Nix
46 lines
848 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, lxml
|
|
, cairosvg
|
|
, pyquery
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pygal";
|
|
version = "3.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-KSP5XS5RWTCqWplyGdzO+/PZK36vX8HJ/ruVsJk1/bI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace pytest-runner ""
|
|
'';
|
|
|
|
passthru.optional-dependencies = {
|
|
lxml = [ lxml ];
|
|
png = [ cairosvg ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pyquery
|
|
pytestCheckHook
|
|
] ++ passthru.optional-dependencies.png;
|
|
|
|
preCheck = ''
|
|
# necessary on darwin to pass the testsuite
|
|
export LANG=en_US.UTF-8
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Sexy and simple python charting";
|
|
homepage = "http://www.pygal.org";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|