0215034f25
when they already rely on SRI hashes.
37 lines
744 B
Nix
37 lines
744 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "datauri";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fcurella";
|
|
repo = "python-datauri";
|
|
rev = "v${version}";
|
|
hash = "sha256-Eevd/xxKgxvvsAfI/L/KShH+PfxffBGyVwKewLgyEu0=";
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"datauri"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|