Martin Weinelt ae4a1a485a
treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00

47 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
azure-common,
azure-mgmt-core,
isodate,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "azure-mgmt-appcontainers";
version = "3.2.0";
format = "setuptools";
pyroject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "azure_mgmt_appcontainers";
inherit version;
hash = "sha256-bp7WPCwssPZD+tZ52BMIxKomFWztQfwDPl9MBJghjz4=";
};
build-system = [ setuptools ];
dependencies = [
azure-common
azure-mgmt-core
isodate
] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ];
# no tests included
doCheck = false;
pythonImportsCheck = [ "azure.mgmt.appcontainers" ];
meta = with lib; {
description = "Microsoft Azure Appcontainers Management Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/appcontainers/azure-mgmt-appcontainers";
license = licenses.mit;
maintainers = with maintainers; [ jfroche ];
};
}