python3Packages.pytest-reraise: init at 2.1.2

Changed files
+50
pkgs
development
python-modules
duckdb
pytest-reraise
top-level
+2
pkgs/development/python-modules/duckdb/default.nix
···
psutil,
pybind11,
setuptools-scm,
pytestCheckHook,
}:
···
fsspec
google-cloud-storage
psutil
pytestCheckHook
];
···
psutil,
pybind11,
setuptools-scm,
+
pytest-reraise,
pytestCheckHook,
}:
···
fsspec
google-cloud-storage
psutil
+
pytest-reraise
pytestCheckHook
];
+46
pkgs/development/python-modules/pytest-reraise/default.nix
···
···
+
{
+
lib,
+
buildPythonPackage,
+
fetchFromGitHub,
+
pytest,
+
pytestCheckHook,
+
poetry-core,
+
}:
+
+
buildPythonPackage rec {
+
pname = "pytest-reraise";
+
version = "2.1.2";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "bjoluc";
+
repo = pname;
+
tag = "v${version}";
+
hash = "sha256-mgNKoZ+2sinArTZhSwhLxzBTb4QfiT1LWBs7w5MHXWA=";
+
};
+
+
postPatch = ''
+
substituteInPlace pyproject.toml \
+
--replace-fail 'poetry>=0.12' 'poetry-core>=1.0.0' \
+
--replace-fail 'poetry.masonry' 'poetry.core.masonry'
+
'';
+
+
build-system = [ poetry-core ];
+
+
dependencies = [ pytest ];
+
+
nativeCheckInputs = [ pytestCheckHook ];
+
+
pythonImportsCheck = [ "pytest_reraise" ];
+
+
meta = {
+
description = "Make multi-threaded pytest test cases fail when they should";
+
longDescription = ''
+
Make multi-threaded pytest test cases fail when they should
+
'';
+
homepage = "https://github.com/bjoluc/pytest-reraise";
+
changelog = "https://github.com/bjoluc/pytest-reraise/releases/tag/${src.tag}";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ cpcloud ];
+
};
+
}
+2
pkgs/top-level/python-packages.nix
···
pytest-repeat = callPackage ../development/python-modules/pytest-repeat { };
pytest-rerunfailures = callPackage ../development/python-modules/pytest-rerunfailures { };
pytest-resource-path = callPackage ../development/python-modules/pytest-resource-path { };
···
pytest-repeat = callPackage ../development/python-modules/pytest-repeat { };
+
pytest-reraise = callPackage ../development/python-modules/pytest-reraise { };
+
pytest-rerunfailures = callPackage ../development/python-modules/pytest-rerunfailures { };
pytest-resource-path = callPackage ../development/python-modules/pytest-resource-path { };