2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytest,
|
|
|
|
pytest7CheckHook,
|
2022-07-18 16:21:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-unordered";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.5.2";
|
|
|
|
format = "setuptools";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "utapyngo";
|
2023-01-11 07:51:40 +00:00
|
|
|
repo = "pytest-unordered";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-51UJjnGBO7qBvQlY8F0B29n8+EO2aa3DF3WOwcjZzSo=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-04-21 15:54:59 +00:00
|
|
|
# https://github.com/utapyngo/pytest-unordered/issues/15
|
|
|
|
pytest7CheckHook
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pytest_unordered" ];
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/utapyngo/pytest-unordered/blob/v${version}/CHANGELOG.md";
|
2022-07-18 16:21:45 +00:00
|
|
|
description = "Test equality of unordered collections in pytest";
|
|
|
|
homepage = "https://github.com/utapyngo/pytest-unordered";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|