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=";
43 propagatedBuildInputs = [
49 rich # for example parser aoce. must either be here or checkInputs
65 # Too many failing tests
66 preCheck = "rm pytest.ini";
72 "test_run_and_autosubmit"
73 "test_run_and_no_autosubmit"
74 "test_load_input_from_file"
75 "test_examples_cache" # IndexError: list index out of range
76 "test_example_partial" # ValueError: not enough values to unpack (expected 1, got 0)
77 "test_run_against_examples" # AssertionError: assert '2022/25 - The Puzzle Title' in ''
78 "test_aocd_no_examples" # SystemExit: 2
79 "test_aocd_examples" # SystemExit: 2
80 "test_aoce" # SystemExit: 1
82 # TypeError: sequence item 0: expected str instance, bool found
83 # Likely because they use `pook.get` to get a webpage
84 "test_submit_prevents_bad_guesses_too_high"
85 "test_submit_prevents_bad_guesses_too_low"
86 "test_submit_prevents_bad_guesses_known_incorrect"
87 "test_submit_correct_answer"
88 "test_correct_submit_reopens_browser_on_answer_page"
90 "test_submit_when_already_solved"
91 "test_submitted_too_recently_autoretry"
92 "test_submitted_too_recently_autoretry_quiet"
93 "test_submit_when_submitted_too_recently_no_autoretry"
94 "test_submit_wrong_answer "
95 "test_correct_submit_records_good_answer"
96 "test_submits_for_partb_when_already_submitted_parta"
97 "test_submit_when_parta_solved_but_answer_unsaved"
98 "test_submit_saves_both_answers_if_possible"
99 "test_submit_puts_level1_by_default"
100 "test_cannot_submit_same_bad_answer_twice"
101 "test_submit_float_warns"
104 pythonImportsCheck = [
109 description = "Get your Advent of Code data with a single import statement";
110 homepage = "https://github.com/wimglenn/advent-of-code-data";
111 changelog = "https://github.com/wimglenn/advent-of-code-data/releases/tag/v${version}";
112 license = licenses.mit;
113 maintainers = with maintainers; [ aadibajpai ];
114 platforms = platforms.unix;