python37Packages.py-air-control-exporter: 0.3.0 -> 0.3.1
This commit is contained in:
parent
a54d2e72e2
commit
6b84305e5c
|
@ -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; };
|
||||
|
|
Loading…
Reference in a new issue