about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytest-unordered/default.nix
blob: b14a1e12ada5ee8dc883127ee9b2c6891eb3cbf4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytest_7
, pytestCheckHook
}:

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
    (pytestCheckHook.override { pytest = pytest_7; })
  ];

  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 ];
  };
}