python3Packages.datauri: 1.1.0 -> 2.0.0

This commit is contained in:
Martin Weinelt 2023-09-15 14:06:00 +02:00
parent e75adaa1cd
commit a079000ab9

View file

@ -1,31 +1,38 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, setuptools
, pydantic
, pytestCheckHook , pytestCheckHook
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "datauri"; pname = "datauri";
version = "1.1.0"; version = "2.0.0";
format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "fcurella"; owner = "fcurella";
repo = "python-datauri"; repo = "python-datauri";
rev = "v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-Eevd/xxKgxvvsAfI/L/KShH+PfxffBGyVwKewLgyEu0="; hash = "sha256-k4tlWRasGa2oQykCD9QJl65UAoZQMJVdyCfqlUBBgqY=";
}; };
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [ pythonImportsCheck = [
"datauri" "datauri"
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pydantic
pytestCheckHook pytestCheckHook
]; ];
disabledTestPaths = [ disabledTests = [
# UnicodeDecodeError: 'utf-8' codec can't decode "test_pydantic" # incompatible with pydantic v2
"tests/test_file_ebcdic.txt"
]; ];
meta = with lib; { meta = with lib; {