6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
53 lines
949 B
Nix
53 lines
949 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, decorator
|
|
, fetchPypi
|
|
, invocations
|
|
, invoke
|
|
, pytest
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-relaxed";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Szc8x1Rmb/YPVCWmnLQUZCwqEc56RsjOBmpzjkCSyjk=";
|
|
};
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
decorator
|
|
];
|
|
|
|
checkInputs = [
|
|
invocations
|
|
invoke
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pytest_relaxed"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://pytest-relaxed.readthedocs.io/";
|
|
description = "Relaxed test discovery/organization for pytest";
|
|
changelog = "https://github.com/bitprophet/pytest-relaxed/blob/${version}/docs/changelog.rst";
|
|
license = licenses.bsd0;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|