at 24.11-pre 1.0 kB view raw
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.1.1"; 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-+R1J4IjJ+Vf/+V2kiZyIyAqTAgGLTMJjGePyVRuO5rs="; 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 disabledTests = [ 38 # Test is incompatible with pydantic >=2 39 "test_pydantic" 40 ]; 41 42 meta = with lib; { 43 description = "Module for Data URI manipulation"; 44 homepage = "https://github.com/fcurella/python-datauri"; 45 changelog = "https://github.com/fcurella/python-datauri/releases/tag/v${version}"; 46 license = licenses.unlicense; 47 maintainers = with maintainers; [ yuu ]; 48 }; 49}