Unverified Commit 0da8cdf3 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.devpi-common: refactor (#340099)

parents 4f85d192 522317f1
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -2,13 +2,14 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  lazy,
  packaging-legacy,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  setuptools-changelog-shortener,
  requests,
  setuptools-changelog-shortener,
  setuptools,
  tomli,
  pytestCheckHook,
  lazy,
}:

buildPythonPackage rec {
@@ -24,14 +25,15 @@ buildPythonPackage rec {
    hash = "sha256-I1oKmkXJblTGC6a6L3fYVs+Q8aacG+6UmIfp7cA6Qcw=";
  };

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

  propagatedBuildInputs = [
    requests
  dependencies = [
    lazy
    packaging-legacy
    requests
    tomli
  ];

+43 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  packaging,
  pretend,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "packaging-legacy";
  version = "23.0.post0";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "di";
    repo = "packaging_legacy";
    rev = "refs/tags/${version}";
    hash = "sha256-2TnJjxasC8+c+qHY60e6Jyqhf1nQJfj/tmIA/LvUsT8=";
  };

  build-system = [ setuptools ];

  dependencies = [ packaging ];

  nativeCheckInputs = [
    pretend
    pytestCheckHook
  ];

  pythonImportsCheck = [ "packaging_legacy" ];

  meta = {
    description = "Module to support for legacy Python Packaging functionality";
    homepage = "https://github.com/di/packaging_legacy";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ fab ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -9461,6 +9461,8 @@ self: super: with self; {
  packaging = callPackage ../development/python-modules/packaging { };
  packaging-legacy = callPackage ../development/python-modules/packaging-legacy { };
  packbits = callPackage ../development/python-modules/packbits { };
  packet-python = callPackage ../development/python-modules/packet-python { };