Files
nixpkgs/pkgs/development/python-modules/aocd/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

77 lines
1.4 KiB
Nix

{
lib,
aocd-example-parser,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
numpy,
pebble,
pook,
pytest-freezegun,
pytest-mock,
pytest-cov-stub,
pytest-raisin,
pytest-socket,
pytestCheckHook,
python-dateutil,
requests,
requests-mock,
rich,
setuptools,
termcolor,
tzlocal,
}:
buildPythonPackage rec {
pname = "aocd";
version = "2.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "wimglenn";
repo = "advent-of-code-data";
tag = "v${version}";
hash = "sha256-xR9CfyOUsKSSA/1zYi6kCK3oAaX6Kd625mKMWI+ZFMA=";
};
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/"
];
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ aadibajpai ];
platforms = lib.platforms.unix;
};
}