mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
python3Packages.prometheus-client: rename and enable tests
This commit is contained in:
parent
2002a716ab
commit
508bb7f42e
|
@ -0,0 +1,29 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "prometheus-client";
|
||||||
|
version = "0.11.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "prometheus";
|
||||||
|
repo = "client_python";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "14swmy4dgpk6cyjsm2advgc2c8api7xaca1sl7swznblh5fyzgzg";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "prometheus_client" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Prometheus instrumentation library for Python applications";
|
||||||
|
homepage = "https://github.com/prometheus/client_python";
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,19 +0,0 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi }:
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
|
||||||
pname = "prometheus_client";
|
|
||||||
version = "0.11.0";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "3a8baade6cb80bcfe43297e33e7623f3118d660d41387593758e2fb1ea173a86";
|
|
||||||
};
|
|
||||||
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
description = "Prometheus instrumentation library for Python applications";
|
|
||||||
homepage = "https://github.com/prometheus/client_python";
|
|
||||||
license = licenses.asl20;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -53,7 +53,9 @@ mapAliases ({
|
||||||
HAP-python = hap-python; # added 2021-06-01
|
HAP-python = hap-python; # added 2021-06-01
|
||||||
lammps-cython = throw "no longer builds and is unmaintained";
|
lammps-cython = throw "no longer builds and is unmaintained";
|
||||||
MechanicalSoup = mechanicalsoup; # added 2021-06-01
|
MechanicalSoup = mechanicalsoup; # added 2021-06-01
|
||||||
|
pam = python-pam; # added 2020-09-07.
|
||||||
privacyidea = throw "renamed to pkgs.privacyidea"; # added 2021-06-20
|
privacyidea = throw "renamed to pkgs.privacyidea"; # added 2021-06-20
|
||||||
|
prometheus_client = prometheus-client; # added 2021-06-10
|
||||||
prompt_toolkit = prompt-toolkit;
|
prompt_toolkit = prompt-toolkit;
|
||||||
pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20
|
pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20
|
||||||
pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04
|
pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04
|
||||||
|
@ -63,7 +65,6 @@ mapAliases ({
|
||||||
pytestquickcheck = pytest-quickcheck; # added 2021-07-20
|
pytestquickcheck = pytest-quickcheck; # added 2021-07-20
|
||||||
pytestrunner = pytest-runner; # added 2021-01-04
|
pytestrunner = pytest-runner; # added 2021-01-04
|
||||||
python-lz4 = lz4; # added 2018-06-01
|
python-lz4 = lz4; # added 2018-06-01
|
||||||
pam = python-pam; # added 2020-09-07.
|
|
||||||
pytest_xdist = pytest-xdist; # added 2021-01-04
|
pytest_xdist = pytest-xdist; # added 2021-01-04
|
||||||
python_simple_hipchat = python-simple-hipchat; # added 2021-07-21
|
python_simple_hipchat = python-simple-hipchat; # added 2021-07-21
|
||||||
qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
|
qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
|
||||||
|
|
|
@ -5671,7 +5671,7 @@ in {
|
||||||
|
|
||||||
progress = callPackage ../development/python-modules/progress { };
|
progress = callPackage ../development/python-modules/progress { };
|
||||||
|
|
||||||
prometheus_client = callPackage ../development/python-modules/prometheus_client { };
|
prometheus-client = callPackage ../development/python-modules/prometheus-client { };
|
||||||
|
|
||||||
prometheus-flask-exporter = callPackage ../development/python-modules/prometheus-flask-exporter { };
|
prometheus-flask-exporter = callPackage ../development/python-modules/prometheus-flask-exporter { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue