1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytest,
7 pytestCheckHook,
8 six,
9}:
10
11buildPythonPackage rec {
12 pname = "pytest-fixture-config";
13 version = "1.8.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "man-group";
18 repo = "pytest-plugins";
19 tag = "v${version}";
20 hash = "sha256-fLctuuvHVk9GvQB5cTL4/T7GeWzJ2zLJpwZqq9/6C30=";
21 };
22
23 postPatch = ''
24 cd pytest-fixture-config
25 '';
26
27 build-system = [
28 setuptools
29 ];
30
31 buildInputs = [ pytest ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 six
36 ];
37
38 meta = with lib; {
39 changelog = "https://github.com/man-group/pytest-plugins/blob/${src.tag}/CHANGES.md";
40 description = "Simple configuration objects for Py.test fixtures. Allows you to skip tests when their required config variables aren’t set";
41 homepage = "https://github.com/manahl/pytest-plugins";
42 license = licenses.mit;
43 maintainers = with maintainers; [ ryansydnor ];
44 };
45}