Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytest, 6 pytest7CheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "pytest-unordered"; 11 version = "0.5.2"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "utapyngo"; 16 repo = "pytest-unordered"; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-51UJjnGBO7qBvQlY8F0B29n8+EO2aa3DF3WOwcjZzSo="; 19 }; 20 21 buildInputs = [ pytest ]; 22 23 nativeCheckInputs = [ 24 # https://github.com/utapyngo/pytest-unordered/issues/15 25 pytest7CheckHook 26 ]; 27 28 pythonImportsCheck = [ "pytest_unordered" ]; 29 30 meta = with lib; { 31 changelog = "https://github.com/utapyngo/pytest-unordered/blob/v${version}/CHANGELOG.md"; 32 description = "Test equality of unordered collections in pytest"; 33 homepage = "https://github.com/utapyngo/pytest-unordered"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ onny ]; 36 }; 37}