python312Packages.pytest-spec: 3.2.0-unstable-2023-06-04 -> 4.0.0
This commit is contained in:
parent
1169a689f3
commit
280cc69cd6
@ -1,34 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
poetry-core,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
pytest,
|
||||
pytestCheckHook,
|
||||
pytest-describe,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
buildPythonPackage rec {
|
||||
pname = "pytest-spec";
|
||||
version = "3.2.0-unstable-2023-06-04";
|
||||
version = "4.0.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pchomik";
|
||||
repo = "pytest-spec";
|
||||
rev = "e16e0550dd6bc557411e4312b7b42d53b26e69ef";
|
||||
hash = "sha256-dyDUdZJU4E4y1yCzunAX2c48Qv6ogu0b60U/5YbJvIU=";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-SOu4ucRcLQSk1YOfNifFDezsB+ZeLXTwbJJ93/3EASk=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/addopts/d' setup.cfg
|
||||
# TODO: upstream
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail "poetry>=0.12" "poetry-core" \
|
||||
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
@ -37,11 +36,10 @@ buildPythonPackage {
|
||||
pytest-describe
|
||||
];
|
||||
|
||||
pytestFlagsArray = [ "--spec" ];
|
||||
|
||||
pythonImportsCheck = [ "pytest_spec" ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/pchomik/pytest-spec/blob/${src.rev}/CHANGES.txt";
|
||||
description = "Pytest plugin to display test execution output like a SPECIFICATION";
|
||||
homepage = "https://github.com/pchomik/pytest-spec";
|
||||
license = lib.licenses.gpl2Plus;
|
||||
|
Loading…
Reference in New Issue
Block a user