Merge pull request #152032 from aadibajpai/aocd

python3Packages.aocd: init at 1.1.1
This commit is contained in:
Ben Siraphob 2021-12-25 14:52:00 +07:00 committed by GitHub
commit 253551b6a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 110 additions and 1 deletions

View file

@ -119,6 +119,12 @@
githubId = 241628;
name = "Adam Russell";
};
aadibajpai = {
email = "hello@aadibajpai.com";
github = "aadibajpai";
githubId = 27063113;
name = "Aadi Bajpai";
};
aanderse = {
email = "aaron@fosslib.net";
matrix = "@aanderse:nixos.dev";

View 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;
};
}

View file

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, isPy27, fetchPypi, pytestCheckHook }:
{ lib, stdenv, buildPythonPackage, isPy27, fetchPypi, pytestCheckHook }:
buildPythonPackage rec {
pname = "pebble";
@ -11,6 +11,8 @@ buildPythonPackage rec {
sha256 = "0a595f7mrf89xlck9b2x83bqybc9zd9jxkl0sa5cf19vax18rg8h";
};
doCheck = !stdenv.isDarwin;
checkInputs = [
pytestCheckHook
];

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, pytest
}:
buildPythonPackage rec {
pname = "pytest-raisin";
version = "0.3";
format = "flit";
src = fetchFromGitHub {
owner = "wimglenn";
repo = "pytest-raisin";
rev = "v${version}";
sha256 = "73cOrsqlE04m6X3a6VwtRzfi24oqkdO3HjKQH61bU88=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
pytest
];
# tests cause circular pytest-raisin already registered with pytest error
doCheck = false;
meta = with lib; {
description = "Plugin enabling the use of exception instances with pytest.raises context";
homepage = "https://github.com/wimglenn/pytest-raisin";
license = licenses.mit;
maintainers = with maintainers; [ aadibajpai ];
};
}

View file

@ -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 { };

View file

@ -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 { };
@ -7605,6 +7607,8 @@ in {
pytest-raisesregexp = callPackage ../development/python-modules/pytest-raisesregexp { };
pytest-raisin = callPackage ../development/python-modules/pytest-raisin { };
pytest-randomly = callPackage ../development/python-modules/pytest-randomly { };
pytest-random-order = callPackage ../development/python-modules/pytest-random-order { };