depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-unordered/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
892 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest,
pytest7CheckHook,
}:
buildPythonPackage rec {
pname = "pytest-unordered";
version = "0.5.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "utapyngo";
repo = "pytest-unordered";
rev = "refs/tags/v${version}";
hash = "sha256-51UJjnGBO7qBvQlY8F0B29n8+EO2aa3DF3WOwcjZzSo=";
};
buildInputs = [ pytest ];
nativeCheckInputs = [
# https://github.com/utapyngo/pytest-unordered/issues/15
pytest7CheckHook
];
pythonImportsCheck = [ "pytest_unordered" ];
meta = with lib; {
changelog = "https://github.com/utapyngo/pytest-unordered/blob/v${version}/CHANGELOG.md";
description = "Test equality of unordered collections in pytest";
homepage = "https://github.com/utapyngo/pytest-unordered";
license = licenses.mit;
maintainers = with maintainers; [ onny ];
};
}