python310Packages.schedule: disable on unsupported Python releases

- add format
This commit is contained in:
Fabian Affolter 2023-04-26 22:53:38 +02:00 committed by GitHub
parent 44d9f4b5b2
commit 253aa28f82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,18 +2,24 @@
, buildPythonPackage
, fetchPypi
, mock
, pythonOlder
}:
buildPythonPackage rec {
pname = "schedule";
version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-tK1peq+6cYTJ62oeLrxB94FUckKs3ozq6aCiWwTAki0=";
hash = "sha256-tK1peq+6cYTJ62oeLrxB94FUckKs3ozq6aCiWwTAki0=";
};
buildInputs = [ mock ];
buildInputs = [
mock
];
preCheck = ''
# https://github.com/dbader/schedule/issues/488
@ -27,5 +33,6 @@ buildPythonPackage rec {
homepage = "https://github.com/dbader/schedule";
changelog = "https://github.com/dbader/schedule/blob/${version}/HISTORY.rst";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}