2022-04-12 05:31:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datauri";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcurella";
|
|
|
|
repo = "python-datauri";
|
|
|
|
rev = "v${version}";
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-Eevd/xxKgxvvsAfI/L/KShH+PfxffBGyVwKewLgyEu0=";
|
2022-04-12 05:31:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"datauri"
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-12 05:31:38 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# UnicodeDecodeError: 'utf-8' codec can't decode
|
|
|
|
"tests/test_file_ebcdic.txt"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Data URI manipulation made easy.";
|
|
|
|
homepage = "https://github.com/fcurella/python-datauri";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ yuu ];
|
|
|
|
};
|
|
|
|
}
|