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

36 lines
797 B
Nix

{
lib,
python3Packages,
fetchFromGitHub,
installShellFiles,
sg3_utils,
}:
python3Packages.buildPythonApplication rec {
pname = "sasutils";
version = "0.6.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "stanford-rc";
repo = "sasutils";
tag = "v${version}";
sha256 = "sha256-rx4IxS5q1c3z617F4DBWxuxxSPHKFrw2bTW6b6/qkds=";
};
nativeBuildInputs = [ installShellFiles ];
propagatedBuildInputs = [ sg3_utils ];
postInstall = ''
installManPage doc/man/man1/*.1
'';
meta = with lib; {
homepage = "https://github.com/stanford-rc/sasutils";
description = "Set of command-line tools to ease the administration of Serial Attached SCSI (SAS) fabrics";
license = licenses.asl20;
maintainers = with maintainers; [ aij ];
};
}