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