forked from mirrors/nixpkgs
python3Packages.aocd: init at 1.1.1
This commit is contained in:
parent
305cfd9872
commit
3ef3aaf76d
58
pkgs/development/python-modules/aocd/default.nix
Normal file
58
pkgs/development/python-modules/aocd/default.nix
Normal file
|
@ -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;
|
||||
};
|
||||
}
|
|
@ -186,6 +186,8 @@ with pkgs;
|
|||
|
||||
antsimulator = callPackage ../games/antsimulator { };
|
||||
|
||||
aocd = with pythonPackages; toPythonApplication aocd;
|
||||
|
||||
astrolog = callPackage ../applications/science/astronomy/astrolog { };
|
||||
|
||||
atkinson-hyperlegible = callPackage ../data/fonts/atkinson-hyperlegible { };
|
||||
|
|
|
@ -535,6 +535,8 @@ in {
|
|||
inherit (pkgs) graphviz;
|
||||
};
|
||||
|
||||
aocd = callPackage ../development/python-modules/aocd { };
|
||||
|
||||
apache-airflow = callPackage ../development/python-modules/apache-airflow { };
|
||||
|
||||
apcaccess = callPackage ../development/python-modules/apcaccess { };
|
||||
|
|
Loading…
Reference in a new issue