Unverified Commit 6cf687b1 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #268913 from fabaff/gitdb-bump

python311Packages.gitdb: 4.0.10 -> 4.0.11
parents 2f1e07c5 b8542535
Loading
Loading
Loading
Loading
+37 −13
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
, smmap
, isPy3k
}:

buildPythonPackage rec {
  pname = "gitdb";
  version = "4.0.10";
  disabled = !isPy3k;
  version = "4.0.11";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-brmQtp304VutiZ6oaNxGVyw/dTOXNWY7gd55sG8X65o=";
    hash = "sha256-v1QhEmE21tCvVbwefBrxw5ejT1t71553bNPol4XCsEs=";
  };

  propagatedBuildInputs = [ smmap ];
  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    smmap
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace setup.py --replace ",<4" ""
  '';
  pythonImportsCheck = [
    "gitdb"
  ];

  # Bunch of tests fail because they need an actual git repo
  doCheck = false;
  disabledTests = [
    # Tests need part which are not shipped with PyPI releases
    "test_base"
    "test_reading"
    "test_writing"
    "test_correctness"
    "test_loose_correctness"
    "test_pack_random_access"
    "test_pack_writing"
    "test_stream_reading"
  ];

  meta = {
  meta = with lib; {
    description = "Git Object Database";
    maintainers = [ ];
    homepage = "https://github.com/gitpython-developers/gitdb";
    license = lib.licenses.bsd3;
    changelog = "https://github.com/gitpython-developers/gitdb/releases/tag/${version}";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };
}