summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pytest-param-files/default.nix
blob: 79d7b698b58919e48446d16f678e8cb1d9e8b630 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  flit-core,
  ruamel-yaml,
  pytest,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pytest-param-files";
  version = "0.6.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "chrisjsewell";
    repo = "pytest-param-files";
    tag = "v${version}";
    hash = "sha256-hgEEfKf9Kmah5WDNHoFWQJKLOs9Z5BDHiebXCdDc1zE=";
  };

  nativeBuildInputs = [ flit-core ];

  buildInputs = [ pytest ];

  propagatedBuildInputs = [ ruamel-yaml ];

  pythonImportsCheck = [ "pytest_param_files" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Package to generate parametrized pytests from external files";
    homepage = "https://github.com/chrisjsewell/pytest-param-files";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ loicreynier ];
  };
}