1{
2 lib,
3 buildPythonPackage,
4 click,
5 click-completion,
6 click-default-group,
7 cucumber-tag-expressions,
8 fetchFromGitHub,
9 pluggy,
10 poetry-core,
11 pprintpp,
12 pythonOlder,
13 rich,
14 tomli,
15}:
16
17buildPythonPackage rec {
18 pname = "ward";
19 version = "0.68.0b0";
20 pyproject = true;
21
22 disabled = pythonOlder "3.8";
23
24 src = fetchFromGitHub {
25 owner = "darrenburns";
26 repo = "ward";
27 tag = "release%2F${version}";
28 hash = "sha256-4dEMEEPySezgw3dIcYMl56HrhyaYlql9JvtamOn7Y8g=";
29 };
30
31 build-system = [ poetry-core ];
32
33 dependencies = [
34 click
35 rich
36 tomli
37 pprintpp
38 cucumber-tag-expressions
39 click-default-group
40 click-completion
41 pluggy
42 ];
43
44 # Fixture is missing. Looks like an issue with the import of the sample file
45 doCheck = false;
46
47 pythonImportsCheck = [ "ward" ];
48
49 meta = with lib; {
50 description = "Test framework for Python";
51 homepage = "https://github.com/darrenburns/ward";
52 changelog = "https://github.com/darrenburns/ward/releases/tag/release%2F${version}";
53 license = licenses.mit;
54 maintainers = with maintainers; [ fab ];
55 mainProgram = "ward";
56 # Old requirements (cucumber-tag-expressions and rich)
57 # https://github.com/darrenburns/ward/issues/380
58 broken = versionAtLeast rich.version "13.0.0";
59 };
60}