python312Packages.devpi-common: refactor (#340099)

This commit is contained in:
Fabian Affolter
2024-09-06 20:26:34 +02:00
committed by GitHub
3 changed files with 56 additions and 9 deletions
@@ -2,13 +2,14 @@
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
setuptools-changelog-shortener,
requests,
tomli,
pytestCheckHook,
lazy,
packaging-legacy,
pytestCheckHook,
pythonOlder,
requests,
setuptools-changelog-shortener,
setuptools,
tomli,
}:
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
];
@@ -0,0 +1,43 @@
{
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
View File
@@ -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 { };