mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
python39Packages.Fabric: format, use pytestCheckHook, update disable test comment
This commit is contained in:
parent
5c5556f5bc
commit
06df8a097c
|
@ -1,9 +1,11 @@
|
|||
{ lib, buildPythonPackage, fetchPypi
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, cryptography
|
||||
, invoke
|
||||
, mock
|
||||
, paramiko
|
||||
, pytest
|
||||
, pytestCheckHook
|
||||
, pytest-relaxed
|
||||
}:
|
||||
|
||||
|
@ -23,20 +25,21 @@ buildPythonPackage rec {
|
|||
'';
|
||||
|
||||
propagatedBuildInputs = [ invoke paramiko cryptography ];
|
||||
checkInputs = [ pytest mock pytest-relaxed ];
|
||||
|
||||
# requires pytest_relaxed, which doesnt have official support for pytest>=5
|
||||
# https://github.com/bitprophet/pytest-relaxed/issues/12
|
||||
checkInputs = [ pytestCheckHook pytest-relaxed mock ];
|
||||
|
||||
# ==================================== ERRORS ====================================
|
||||
# ________________________ ERROR collecting test session _________________________
|
||||
# Direct construction of SpecModule has been deprecated, please use SpecModule.from_parent
|
||||
# See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
pytest tests
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "fabric" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Pythonic remote execution";
|
||||
homepage = "https://www.fabfile.org/";
|
||||
license = licenses.bsd2;
|
||||
homepage = "https://www.fabfile.org/";
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.costrouc ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue