nixpkgs/pkgs/development/python-modules/aocd/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

78 lines
1.5 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
, tzlocal
, pytest-mock
, pytest-freezegun
, pytest-raisin
, pytest-socket
, requests-mock
, pebble
, python-dateutil
, termcolor
, beautifulsoup4
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "aocd";
version = "1.3.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wimglenn";
repo = "advent-of-code-data";
rev = "refs/tags/v${version}";
hash = "sha256-yY8ItXZZp0yVs4viJzduMPq8Q8NKd34uvlGaVUE2GjQ=";
};
propagatedBuildInputs = [
python-dateutil
requests
termcolor
beautifulsoup4
pebble
tzlocal
setuptools
];
# Too many failing tests
preCheck = "rm pytest.ini";
disabledTests = [
"test_results"
"test_results_xmas"
"test_run_error"
"test_run_and_autosubmit"
"test_run_and_no_autosubmit"
"test_load_input_from_file"
];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
pytest-freezegun
pytest-raisin
pytest-socket
requests-mock
];
pythonImportsCheck = [
"aocd"
];
meta = with lib; {
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/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ aadibajpai ];
platforms = platforms.unix;
};
}