1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pydantic,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 typing-extensions,
10 cached-property,
11}:
12
13buildPythonPackage rec {
14 pname = "datauri";
15 version = "3.0.2";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "fcurella";
22 repo = "python-datauri";
23 tag = "v${version}";
24 hash = "sha256-WrOQPUZ9vaLSR0hxIvCK8kBnARiOLh6qqWBw/h6XpaY=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 typing-extensions
31 cached-property
32 ];
33
34 nativeCheckInputs = [
35 pydantic
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "datauri" ];
40
41 meta = with lib; {
42 description = "Module for Data URI manipulation";
43 homepage = "https://github.com/fcurella/python-datauri";
44 changelog = "https://github.com/fcurella/python-datauri/releases/tag/${src.tag}";
45 license = licenses.unlicense;
46 maintainers = with maintainers; [ ];
47 };
48}