diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-03-27 08:56:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 08:56:42 +0100 |
commit | 32dbb625878907a4f1a7f40fc1107520ef8b1b0c (patch) | |
tree | 9f64e104cc1de4a881a202e1e096257b75af7dca /pkgs | |
parent | a00bc0510d7059ae820580eb6e0ead6196f84b18 (diff) |
python312Packages.markdownify: refactor
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/markdownify/default.nix | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/markdownify/default.nix b/pkgs/development/python-modules/markdownify/default.nix index 886d078a690ed..e6b09592073ab 100644 --- a/pkgs/development/python-modules/markdownify/default.nix +++ b/pkgs/development/python-modules/markdownify/default.nix @@ -1,23 +1,41 @@ { lib +, beautifulsoup4 , buildPythonPackage , fetchPypi , pytestCheckHook -, beautifulsoup4 +, pythonOlder +, setuptools , six }: buildPythonPackage rec { pname = "markdownify"; version = "0.12.1"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; hash = "sha256-H7CMYYsw4O56MaObmY9EoY+yirJU9V9K8GttNaIXnic="; }; - propagatedBuildInputs = [ beautifulsoup4 six ]; - nativeCheckInputs = [ pytestCheckHook ]; + build-system = [ + setuptools + ]; + + dependencies = [ + beautifulsoup4 + six + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "markdownify" + ]; meta = with lib; { description = "HTML to Markdown converter"; |