python3Packages.convertdate: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-03-23 21:11:55 +01:00
parent 64dd03dc54
commit bf65cd57ca

View file

@ -1,23 +1,24 @@
{ lib
, buildPythonPackage
, isPy27
, fetchFromGitHub
, pymeeus
, pytz
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "convertdate";
version = "2.4.0";
disabled = isPy27;
format = "setuptools";
disabled = pythonOlder "3.7";
# Tests are not available in the PyPI tarball so use GitHub instead.
src = fetchFromGitHub {
owner = "fitnr";
repo = pname;
rev = "v${version}";
sha256 = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
hash = "sha256-iOHK3UJulXJJR50nhiVgfk3bt+CAtG3BRySJ8DkBuJE=";
};
propagatedBuildInputs = [
@ -29,11 +30,13 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportsCheck = [ "convertdate" ];
pythonImportsCheck = [
"convertdate"
];
meta = with lib; {
homepage = "https://github.com/fitnr/convertdate";
description = "Utils for converting between date formats and calculating holidays";
homepage = "https://github.com/fitnr/convertdate";
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
};