diff options
Diffstat (limited to 'pkgs/development/python-modules/pygal/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pygal/default.nix | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/pkgs/development/python-modules/pygal/default.nix b/pkgs/development/python-modules/pygal/default.nix index 6defbca5e5df..2eef6797cbf5 100644 --- a/pkgs/development/python-modules/pygal/default.nix +++ b/pkgs/development/python-modules/pygal/default.nix @@ -1,46 +1,46 @@ -{ lib -, buildPythonPackage -, fetchPypi +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, -# build-system -, setuptools + # build-system + setuptools, -# dependencies -, importlib-metadata + # dependencies + importlib-metadata, -# optional-dependencies -, lxml -, cairosvg + # optional-dependencies + lxml, + cairosvg, -# tests -, pyquery -, pytestCheckHook + # tests + pyquery, + pytestCheckHook, }: buildPythonPackage rec { pname = "pygal"; - version = "3.0.4"; + version = "3.0.5"; pyproject = true; + disabled = pythonOlder "3.8"; + src = fetchPypi { inherit pname version; - hash = "sha256-bF2jPxBB6LMMvJgPijSRDZ7cWEuDMkApj2ol32VCUok="; + hash = "sha256-wKDzTlvBwBl1wr+4NCrVIeKTrULlJWmd0AxNelLBS3E="; }; postPatch = '' substituteInPlace setup.py \ - --replace pytest-runner "" + --replace-fail pytest-runner "" ''; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ - importlib-metadata - ]; + dependencies = [ importlib-metadata ]; - passthru.optional-dependencies = { + optional-dependencies = { lxml = [ lxml ]; png = [ cairosvg ]; }; @@ -48,7 +48,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pyquery pytestCheckHook - ] ++ passthru.optional-dependencies.png; + ] ++ lib.flatten (lib.attrValues optional-dependencies); preCheck = '' # necessary on darwin to pass the testsuite @@ -56,12 +56,12 @@ buildPythonPackage rec { ''; meta = with lib; { + description = "Module for dynamic SVG charting"; + homepage = "http://www.pygal.org"; changelog = "https://github.com/Kozea/pygal/blob/${version}/docs/changelog.rst"; downloadPage = "https://github.com/Kozea/pygal"; - description = "Sexy and simple python charting"; - mainProgram = "pygal_gen.py"; - homepage = "http://www.pygal.org"; license = licenses.lgpl3Plus; - maintainers = with maintainers; [ ]; + maintainers = [ ]; + mainProgram = "pygal_gen.py"; }; } |