python311Packages.aocd: refactor
This commit is contained in:
parent
6e50e3795b
commit
02cb1b733b
1 changed files with 35 additions and 33 deletions
|
@ -1,32 +1,33 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, aocd-example-parser
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, requests
|
||||
, pytestCheckHook
|
||||
, tzlocal
|
||||
, pytest-mock
|
||||
, numpy
|
||||
, pebble
|
||||
, pook
|
||||
, pytest-freezegun
|
||||
, pytest-mock
|
||||
, pytest-raisin
|
||||
, pytest-socket
|
||||
, requests-mock
|
||||
, pook
|
||||
, numpy
|
||||
, rich
|
||||
, pebble
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
, termcolor
|
||||
, beautifulsoup4
|
||||
, setuptools
|
||||
, pythonOlder
|
||||
, requests
|
||||
, requests-mock
|
||||
, rich
|
||||
, setuptools
|
||||
, termcolor
|
||||
, tzlocal
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "aocd";
|
||||
version = "2.0.1";
|
||||
format = "pyproject";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wimglenn";
|
||||
|
@ -35,15 +36,30 @@ buildPythonPackage rec {
|
|||
hash = "sha256-YZvcR97uHceloqwoP+azaBmj3GLusYNbItLIaeJ3QD0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
python-dateutil
|
||||
requests
|
||||
termcolor
|
||||
aocd-example-parser
|
||||
beautifulsoup4
|
||||
pebble
|
||||
tzlocal
|
||||
setuptools
|
||||
python-dateutil
|
||||
requests
|
||||
rich # for example parser aoce. must either be here or checkInputs
|
||||
termcolor
|
||||
tzlocal
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
numpy
|
||||
pook
|
||||
pytest-freezegun
|
||||
pytest-mock
|
||||
pytest-raisin
|
||||
pytest-socket
|
||||
pytestCheckHook
|
||||
requests-mock
|
||||
];
|
||||
|
||||
# Too many failing tests
|
||||
|
@ -85,20 +101,6 @@ buildPythonPackage rec {
|
|||
"test_submit_float_warns"
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-mock
|
||||
pytest-freezegun
|
||||
pytest-raisin
|
||||
pytest-socket
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pook
|
||||
numpy
|
||||
requests-mock
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"aocd"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue