Merge pull request #313262 from natsukium/pycron/refactor

python311Packages.pycron: refactor and remove nose
This commit is contained in:
Fabian Affolter
2024-05-21 12:10:23 +02:00
committed by GitHub
@@ -1,24 +1,40 @@
{ lib, buildPythonPackage, fetchFromGitHub, udatetime, pytz, pendulum, nose
, delorean, coveralls, arrow
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
arrow,
delorean,
pendulum,
pynose,
pytestCheckHook,
pytz,
udatetime,
}:
buildPythonPackage rec {
pname = "pycron";
version = "3.0.0";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "kipe";
repo = pname;
repo = "pycron";
rev = version;
sha256 = "12hkqrdfg3jbqkmck8i00ssyaw1c4hhvdhjxkmh2gm9pd99z5bpv";
hash = "sha256-+67yU2o31SdgnV3CtiEkLHDltQYgosnqxEuO51rGE4o=";
};
nativeCheckInputs = [ arrow coveralls delorean nose pendulum pytz udatetime ];
build-system = [ setuptools ];
checkPhase = ''
nosetests
'';
nativeCheckInputs = [
arrow
delorean
pendulum
pynose
pytestCheckHook
pytz
udatetime
];
pythonImportsCheck = [ "pycron" ];