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