
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.
32 lines
752 B
Nix
32 lines
752 B
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchurl,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "nvmet-cli";
|
|
version = "0.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchurl {
|
|
url = "ftp://ftp.infradead.org/pub/nvmetcli/nvmetcli-${version}.tar.gz";
|
|
sha256 = "051y1b9w46azy35118154c353v3mhjkdzh6h59brdgn5054hayj2";
|
|
};
|
|
|
|
buildInputs = with python3Packages; [ nose2 ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [ configshell-fb ];
|
|
|
|
# This package requires the `nvmet` kernel module to be loaded for tests.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "NVMe target CLI";
|
|
mainProgram = "nvmetcli";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ hoverbear ];
|
|
};
|
|
}
|