1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, pydantic
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "datauri";
11 version = "2.0.0";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "fcurella";
16 repo = "python-datauri";
17 rev = "refs/tags/v${version}";
18 hash = "sha256-k4tlWRasGa2oQykCD9QJl65UAoZQMJVdyCfqlUBBgqY=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 ];
24
25 pythonImportsCheck = [
26 "datauri"
27 ];
28
29 nativeCheckInputs = [
30 pydantic
31 pytestCheckHook
32 ];
33
34 disabledTests = [
35 "test_pydantic" # incompatible with pydantic v2
36 ];
37
38 meta = with lib; {
39 description = "Data URI manipulation made easy.";
40 homepage = "https://github.com/fcurella/python-datauri";
41 license = licenses.unlicense;
42 maintainers = with maintainers; [ yuu ];
43 };
44}