python312Packages.markdownify: refactor

This commit is contained in:
Fabian Affolter 2024-03-27 08:56:42 +01:00 committed by GitHub
parent a00bc0510d
commit 32dbb62587
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,23 +1,41 @@
{ lib { lib
, beautifulsoup4
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, pytestCheckHook , pytestCheckHook
, beautifulsoup4 , pythonOlder
, setuptools
, six , six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "markdownify"; pname = "markdownify";
version = "0.12.1"; version = "0.12.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
hash = "sha256-H7CMYYsw4O56MaObmY9EoY+yirJU9V9K8GttNaIXnic="; hash = "sha256-H7CMYYsw4O56MaObmY9EoY+yirJU9V9K8GttNaIXnic=";
}; };
propagatedBuildInputs = [ beautifulsoup4 six ]; build-system = [
nativeCheckInputs = [ pytestCheckHook ]; setuptools
];
dependencies = [
beautifulsoup4
six
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"markdownify"
];
meta = with lib; { meta = with lib; {
description = "HTML to Markdown converter"; description = "HTML to Markdown converter";