Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, aocd-example-parser, beautifulsoup4, buildPythonPackage, fetchFromGitHub, numpy, pebble, pook, pytest-freezegun, pytest-mock, pytest-cov-stub, pytest-raisin, pytest-socket, pytestCheckHook, python-dateutil, pythonAtLeast, requests, requests-mock, rich, setuptools, termcolor, tzlocal,}:
buildPythonPackage (finalAttrs: { pname = "advent-of-code-data"; version = "2.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "wimglenn"; repo = "advent-of-code-data"; tag = "v${finalAttrs.version}"; hash = "sha256-Oe+9Ur5O2GSRY7qB8oja7quJqEX/0yXKh4R5+N4kv7Q="; };
build-system = [ setuptools ];
dependencies = [ aocd-example-parser beautifulsoup4 pebble python-dateutil requests rich # for example parser aoce. must either be here or checkInputs termcolor tzlocal ];
nativeCheckInputs = [ numpy pook pytest-freezegun pytest-mock pytest-raisin pytest-socket pytestCheckHook pytest-cov-stub requests-mock ];
enabledTestPaths = [ "tests/" ];
disabledTests = lib.optionals (pythonAtLeast "3.14") [ # argparse prog detection changed in 3.14 "test_main_user_ambiguous" ];
pythonImportsCheck = [ "aocd" ];
meta = { description = "Get your Advent of Code data with a single import statement"; homepage = "https://github.com/wimglenn/advent-of-code-data"; changelog = "https://github.com/wimglenn/advent-of-code-data/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ aadibajpai ]; platforms = lib.platforms.unix; };})