Merge pull request #152032 from aadibajpai/aocd
python3Packages.aocd: init at 1.1.1
This commit is contained in:
commit
253551b6a9
6 changed files with 110 additions and 1 deletions
|
@ -119,6 +119,12 @@
|
||||||
githubId = 241628;
|
githubId = 241628;
|
||||||
name = "Adam Russell";
|
name = "Adam Russell";
|
||||||
};
|
};
|
||||||
|
aadibajpai = {
|
||||||
|
email = "hello@aadibajpai.com";
|
||||||
|
github = "aadibajpai";
|
||||||
|
githubId = 27063113;
|
||||||
|
name = "Aadi Bajpai";
|
||||||
|
};
|
||||||
aanderse = {
|
aanderse = {
|
||||||
email = "aaron@fosslib.net";
|
email = "aaron@fosslib.net";
|
||||||
matrix = "@aanderse:nixos.dev";
|
matrix = "@aanderse:nixos.dev";
|
||||||
|
|
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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, isPy27, fetchPypi, pytestCheckHook }:
|
{ lib, stdenv, buildPythonPackage, isPy27, fetchPypi, pytestCheckHook }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pebble";
|
pname = "pebble";
|
||||||
|
@ -11,6 +11,8 @@ buildPythonPackage rec {
|
||||||
sha256 = "0a595f7mrf89xlck9b2x83bqybc9zd9jxkl0sa5cf19vax18rg8h";
|
sha256 = "0a595f7mrf89xlck9b2x83bqybc9zd9jxkl0sa5cf19vax18rg8h";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
37
pkgs/development/python-modules/pytest-raisin/default.nix
Normal file
37
pkgs/development/python-modules/pytest-raisin/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -186,6 +186,8 @@ with pkgs;
|
||||||
|
|
||||||
antsimulator = callPackage ../games/antsimulator { };
|
antsimulator = callPackage ../games/antsimulator { };
|
||||||
|
|
||||||
|
aocd = with pythonPackages; toPythonApplication aocd;
|
||||||
|
|
||||||
astrolog = callPackage ../applications/science/astronomy/astrolog { };
|
astrolog = callPackage ../applications/science/astronomy/astrolog { };
|
||||||
|
|
||||||
atkinson-hyperlegible = callPackage ../data/fonts/atkinson-hyperlegible { };
|
atkinson-hyperlegible = callPackage ../data/fonts/atkinson-hyperlegible { };
|
||||||
|
|
|
@ -535,6 +535,8 @@ in {
|
||||||
inherit (pkgs) graphviz;
|
inherit (pkgs) graphviz;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
aocd = callPackage ../development/python-modules/aocd { };
|
||||||
|
|
||||||
apache-airflow = callPackage ../development/python-modules/apache-airflow { };
|
apache-airflow = callPackage ../development/python-modules/apache-airflow { };
|
||||||
|
|
||||||
apcaccess = callPackage ../development/python-modules/apcaccess { };
|
apcaccess = callPackage ../development/python-modules/apcaccess { };
|
||||||
|
@ -7605,6 +7607,8 @@ in {
|
||||||
|
|
||||||
pytest-raisesregexp = callPackage ../development/python-modules/pytest-raisesregexp { };
|
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-randomly = callPackage ../development/python-modules/pytest-randomly { };
|
||||||
|
|
||||||
pytest-random-order = callPackage ../development/python-modules/pytest-random-order { };
|
pytest-random-order = callPackage ../development/python-modules/pytest-random-order { };
|
||||||
|
|
Loading…
Reference in a new issue