about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytest-param-files/default.nix
blob: 55923b5ed266b1a9bc35098e733b6ec2c258cfaa (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
42
43
44
45
46
47
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, ruamel-yaml
, pytest
, pytestCheckHook
}:

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

  src = fetchFromGitHub {
    owner = "chrisjsewell";
    repo = pname;
    rev = "refs/tags/v${version}";
    hash = "sha256-hgEEfKf9Kmah5WDNHoFWQJKLOs9Z5BDHiebXCdDc1zE=";
  };

  nativeBuildInputs = [
    flit-core
  ];

  buildInputs = [
    pytest
  ];

  propagatedBuildInputs = [
    ruamel-yaml
  ];

  pythonImportsCheck = [
    "pytest_param_files"
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

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