25 buildPythonPackage rec {
30 disabled = pythonOlder "3.9";
32 src = fetchFromGitHub {
34 repo = "advent-of-code-data";
35 rev = "refs/tags/v${version}";
36 hash = "sha256-YZvcR97uHceloqwoP+azaBmj3GLusYNbItLIaeJ3QD0=";
39 nativeBuildInputs = [ setuptools ];
41 propagatedBuildInputs = [
47 rich # for example parser aoce. must either be here or checkInputs
63 # Too many failing tests
64 preCheck = "rm pytest.ini";
70 "test_run_and_autosubmit"
71 "test_run_and_no_autosubmit"
72 "test_load_input_from_file"
73 "test_examples_cache" # IndexError: list index out of range
74 "test_example_partial" # ValueError: not enough values to unpack (expected 1, got 0)
75 "test_run_against_examples" # AssertionError: assert '2022/25 - The Puzzle Title' in ''
76 "test_aocd_no_examples" # SystemExit: 2
77 "test_aocd_examples" # SystemExit: 2
78 "test_aoce" # SystemExit: 1
80 # TypeError: sequence item 0: expected str instance, bool found
81 # Likely because they use `pook.get` to get a webpage
82 "test_submit_prevents_bad_guesses_too_high"
83 "test_submit_prevents_bad_guesses_too_low"
84 "test_submit_prevents_bad_guesses_known_incorrect"
85 "test_submit_correct_answer"
86 "test_correct_submit_reopens_browser_on_answer_page"
88 "test_submit_when_already_solved"
89 "test_submitted_too_recently_autoretry"
90 "test_submitted_too_recently_autoretry_quiet"
91 "test_submit_when_submitted_too_recently_no_autoretry"
92 "test_submit_wrong_answer "
93 "test_correct_submit_records_good_answer"
94 "test_submits_for_partb_when_already_submitted_parta"
95 "test_submit_when_parta_solved_but_answer_unsaved"
96 "test_submit_saves_both_answers_if_possible"
97 "test_submit_puts_level1_by_default"
98 "test_cannot_submit_same_bad_answer_twice"
99 "test_submit_float_warns"
102 pythonImportsCheck = [ "aocd" ];
105 description = "Get your Advent of Code data with a single import statement";
106 homepage = "https://github.com/wimglenn/advent-of-code-data";
107 changelog = "https://github.com/wimglenn/advent-of-code-data/releases/tag/v${version}";
108 license = licenses.mit;
109 maintainers = with maintainers; [ aadibajpai ];
110 platforms = platforms.unix;