nixpkgs/pkgs/development/python-modules/pytest-relaxed/default.nix
Fabian Affolter c66d24a7ff
python310Packages.pytest-relaxed: add changelog to meta
- disable on unsupported Python releases
- re-enable tests
- no longer broken
2023-01-02 10:44:48 +01:00

54 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 ];
};
}