python312Packages.datauri: refactor

This commit is contained in:
Fabian Affolter
2024-05-15 22:15:44 +02:00
parent 7c68fc6d27
commit affad4fc02
@@ -1,15 +1,19 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pydantic
, pytestCheckHook
, pythonOlder
, setuptools
, typing-extensions
}:
buildPythonPackage rec {
pname = "datauri";
version = "2.1.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "fcurella";
@@ -18,12 +22,12 @@ buildPythonPackage rec {
hash = "sha256-+R1J4IjJ+Vf/+V2kiZyIyAqTAgGLTMJjGePyVRuO5rs=";
};
nativeBuildInputs = [
build-system = [
setuptools
];
pythonImportsCheck = [
"datauri"
dependencies = [
typing-extensions
];
nativeCheckInputs = [
@@ -31,13 +35,19 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [
"datauri"
];
disabledTests = [
"test_pydantic" # incompatible with pydantic v2
# Test is incompatible with pydantic >=2
"test_pydantic"
];
meta = with lib; {
description = "Data URI manipulation made easy.";
description = "Module for Data URI manipulation";
homepage = "https://github.com/fcurella/python-datauri";
changelog = "https://github.com/fcurella/python-datauri/releases/tag/v${version}";
license = licenses.unlicense;
maintainers = with maintainers; [ yuu ];
};