diff options
author | Aadi Bajpai <hello@aadibajpai.com> | 2021-12-24 10:47:18 -0600 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-12-25 14:40:37 +0700 |
commit | 3ef3aaf76d94a6a7acf64d586785e4b76372613f (patch) | |
tree | 04a48c6f404f406ceb8247d802755eee8e2d6c3c /pkgs/development/python-modules/aocd | |
parent | 305cfd9872a541d4127a80dc7314aa150aaed76c (diff) |
python3Packages.aocd: init at 1.1.1
Diffstat (limited to 'pkgs/development/python-modules/aocd')
-rw-r--r-- | pkgs/development/python-modules/aocd/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aocd/default.nix b/pkgs/development/python-modules/aocd/default.nix new file mode 100644 index 0000000000000..ca9768569ee1d --- /dev/null +++ b/pkgs/development/python-modules/aocd/default.nix @@ -0,0 +1,58 @@ +{ lib, stdenv, buildPythonPackage, fetchFromGitHub, requests +, pytestCheckHook, tzlocal, pytest-mock, pytest-freezegun, pytest-raisin +, pytest-socket, requests-mock, pebble, python-dateutil, termcolor +, beautifulsoup4, setuptools +}: + +buildPythonPackage rec { + pname = "aocd"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "wimglenn"; + repo = "advent-of-code-data"; + rev = "v${version}"; + sha256 = "sha256-wdg6XUkjnAc9yAP7DP0UT6SlQHfj/ymhqzIGNM3fco4="; + }; + + 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" + ]; + + checkInputs = [ + pytestCheckHook + pytest-mock + pytest-freezegun + pytest-raisin + pytest-socket + requests-mock + ]; + + pythonImportsCheck = [ "aocd" ]; + + meta = with lib; { + homepage = "https://github.com/wimglenn/advent-of-code-data"; + description = "Get your Advent of Code data with a single import statement"; + license = licenses.mit; + maintainers = with maintainers; [ aadibajpai ]; + platforms = platforms.unix; + }; +} |