1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "datauri";
9 version = "1.1.0";
10
11 src = fetchFromGitHub {
12 owner = "fcurella";
13 repo = "python-datauri";
14 rev = "v${version}";
15 sha256 = "sha256-Eevd/xxKgxvvsAfI/L/KShH+PfxffBGyVwKewLgyEu0=";
16 };
17
18 pythonImportsCheck = [
19 "datauri"
20 ];
21
22 checkInputs = [
23 pytestCheckHook
24 ];
25
26 disabledTestPaths = [
27 # UnicodeDecodeError: 'utf-8' codec can't decode
28 "tests/test_file_ebcdic.txt"
29 ];
30
31 meta = with lib; {
32 description = "Data URI manipulation made easy.";
33 homepage = "https://github.com/fcurella/python-datauri";
34 license = licenses.unlicense;
35 maintainers = with maintainers; [ yuu ];
36 };
37}