diff options
Diffstat (limited to 'pkgs/development/python-modules/readme-renderer/default.nix')
-rw-r--r-- | pkgs/development/python-modules/readme-renderer/default.nix | 52 |
1 files changed, 18 insertions, 34 deletions
diff --git a/pkgs/development/python-modules/readme-renderer/default.nix b/pkgs/development/python-modules/readme-renderer/default.nix index 13a8074a56907..2e927f5473dcf 100644 --- a/pkgs/development/python-modules/readme-renderer/default.nix +++ b/pkgs/development/python-modules/readme-renderer/default.nix @@ -1,14 +1,15 @@ -{ lib -, bleach -, buildPythonPackage -, cmarkgfm -, docutils -, fetchPypi -, nh3 -, pygments -, pytestCheckHook -, pythonOlder -, setuptools +{ + lib, + bleach, + buildPythonPackage, + cmarkgfm, + docutils, + fetchPypi, + nh3, + pygments, + pytestCheckHook, + pythonOlder, + setuptools, }: buildPythonPackage rec { @@ -24,9 +25,7 @@ buildPythonPackage rec { hash = "sha256-GBjdKBQIE1Ce7tjWJof3zU97rZDU21hgAcXcCdT94xE="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ docutils @@ -34,36 +33,21 @@ buildPythonPackage rec { pygments ]; - optional-dependencies.md = [ - cmarkgfm - ]; + optional-dependencies.md = [ cmarkgfm ]; - nativeCheckInputs = [ - pytestCheckHook - ] - ++ optional-dependencies.md; + nativeCheckInputs = [ pytestCheckHook ] ++ optional-dependencies.md; disabledTests = [ - # https://github.com/pypa/readme_renderer/issues/221 - "test_GFM_" - # https://github.com/pypa/readme_renderer/issues/274 - "test_CommonMark_008.md" + "test_rst_fixtures" "test_rst_008.rst" - # Relies on old distutils behaviour removed by setuptools (TypeError: dist must be a Distribution instance) - "test_valid_rst" - "test_invalid_rst" - "test_malicious_rst" - "test_invalid_missing" - "test_invalid_empty" ]; - pythonImportsCheck = [ - "readme_renderer" - ]; + pythonImportsCheck = [ "readme_renderer" ]; meta = with lib; { description = "Python library for rendering readme descriptions"; homepage = "https://github.com/pypa/readme_renderer"; + changelog = "https://github.com/pypa/readme_renderer/releases/tag/${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; |