summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-plus/default.nix
blob: 43a0cb3fa080c82c097e2d38aebc73181948bd9b (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "pytest-plus";
  version = "0.8.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pytest-dev";
    repo = "pytest-plus";
    tag = "v${version}";
    hash = "sha256-XlEtekOASIjZretTbQAf0eyQN6qZ9c6zI1ESss/hxfI=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  enabledTestPaths = [ "test/" ];

  pythonImportsCheck = [ "pytest_plus" ];

  meta = {
    description = "pytest-plus adds new features to pytest";
    homepage = "https://github.com/pytest-dev/pytest-plus";
    changelog = "https://github.com/pytest-dev/pytest-plus/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ robsliwi ];
  };
}