The buildPythonPackage and buildPythonApplication functions now require an explicit format attribute. Previously the default format used setuptools and called setup.py from the source tree, which is deprecated. The modern alternative is to configure pyproject = true with build-system = [ setuptools ]. Reviewed-by: Rodrigo Arias Mallo <rodrigo.arias@bsc.es>
27 lines
431 B
Nix
27 lines
431 B
Nix
{ python3Packages, lib }:
|
|
|
|
python3Packages.buildPythonApplication {
|
|
pname = "upc-qaire-exporter";
|
|
version = "1.0";
|
|
|
|
pyproject = true;
|
|
|
|
src = ./.;
|
|
|
|
doCheck = false;
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
prometheus-client
|
|
requests
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "UPC Qaire Prometheus Exporter";
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|