Unverified Commit 5b20a17b authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #312008 from r-ryantm/auto-update/python311Packages.datauri

python311Packages.datauri: 2.0.0 -> 2.1.1
parents 15a76f31 47286902
Loading
Loading
Loading
Loading
+22 −17
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pydantic
, pytestCheckHook
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pydantic,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "datauri";
  version = "2.0.0";
  format = "pyproject";
  version = "2.1.1";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "fcurella";
    repo = "python-datauri";
    rev = "refs/tags/v${version}";
    hash = "sha256-k4tlWRasGa2oQykCD9QJl65UAoZQMJVdyCfqlUBBgqY=";
    hash = "sha256-+R1J4IjJ+Vf/+V2kiZyIyAqTAgGLTMJjGePyVRuO5rs=";
  };

  nativeBuildInputs = [
    setuptools
  ];
  build-system = [ setuptools ];

  pythonImportsCheck = [
    "datauri"
  ];
  dependencies = [ typing-extensions ];

  nativeCheckInputs = [
    pydantic
    pytestCheckHook
  ];

  pythonImportsCheck = [ "datauri" ];

  disabledTests = [
    "test_pydantic" # incompatible with pydantic v2
    # Test is incompatible with pydantic >=2
    "test_pydantic"
  ];

  meta = with lib; {
    description = "Data URI manipulation made easy.";
    description = "Module for Data URI manipulation";
    homepage = "https://github.com/fcurella/python-datauri";
    changelog = "https://github.com/fcurella/python-datauri/releases/tag/v${version}";
    license = licenses.unlicense;
    maintainers = with maintainers; [ yuu ];
  };