Unverified Commit 71fd1bd7 authored by natsukium's avatar natsukium
Browse files

python311Packages.devpi-common: 3.7.2 -> 4.0.0

parent 71470049
Loading
Loading
Loading
Loading
+7 −15
Original line number Diff line number Diff line
{ lib, buildPythonPackage, fetchPypi
, pythonOlder
, setuptools
, setuptools-changelog-shortener
, requests
, py
, pytestCheckHook
, lazy
}:

buildPythonPackage rec {
  pname = "devpi-common";
  version = "3.7.2";
  version = "4.0.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-kHiYknmteenBgce63EpzhGBEUYcQHrDLreZ1k01eRkQ=";
    hash = "sha256-N4f43B1Dg1mCnDF3Sj2341vVXNdjlDzF1vn7ORoLWJ8=";
  };

  postPatch = ''
    substituteInPlace tox.ini \
      --replace "--flake8" ""
  '';
  nativeBuildInputs = [
    setuptools
    setuptools-changelog-shortener
  ];

  propagatedBuildInputs = [
    requests
    py
    lazy
  ];

  nativeCheckInputs = [
    py
    pytestCheckHook
  ];

@@ -45,11 +43,5 @@ buildPythonPackage rec {
    changelog = "https://github.com/devpi/devpi/blob/common-${version}/common/CHANGELOG";
    license = licenses.mit;
    maintainers = with maintainers; [ lewo makefu ];
    # It fails to build because it depends on packaging <22 while we
    # use packaging >22.
    # See the following issues for details:
    # - https://github.com/NixOS/nixpkgs/issues/231346
    # - https://github.com/devpi/devpi/issues/939
    broken = true;
  };
}