Merge pull request #138513 from urbas/py-air-control-0.3.1

python37Packages.py-air-control-exporter: 0.3.0 -> 0.3.1
This commit is contained in:
Fabian Affolter 2021-09-19 23:51:14 +02:00 committed by GitHub
commit f86898640a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,23 +8,18 @@
, prometheus-client
, py-air-control
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "py-air-control-exporter";
version = "0.3.0";
version = "0.3.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "ece2e446273542e5c0352c9d6e80d8279132c6ada3649c59e87a711448801a3b";
sha256 = "0cwhcyyjzc6wlj7jp5h7fcj1hl03wzrz1if3sg205kh2hfrzzlqq";
};
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
click
flask
@ -36,19 +31,6 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "pytest-runner" ""
substituteInPlace setup.cfg \
--replace "--cov=py_air_control_exporter" ""
'';
disabledTests = [
# Tests are outdated
"test_help"
"test_unknown_protocol"
];
pythonImportsCheck = [ "py_air_control_exporter" ];
passthru.tests = { inherit (nixosTests.prometheus-exporters) py-air-control; };