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