1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "hijri-converter";
11 version = "2.3.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-BptniSkeCDD0hgp53NNPs87qO5VRbtQBAgK5ZWuhq2E=";
19 };
20
21 nativeCheckInputs = [ pytestCheckHook ];
22
23 pythonImportsCheck = [ "hijri_converter" ];
24
25 meta = with lib; {
26 description = "Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar";
27 homepage = "https://github.com/dralshehri/hijri-converter";
28 changelog = "https://github.com/dralshehri/hijridate/blob/v${version}/CHANGELOG.md";
29 license = licenses.mit;
30 maintainers = with maintainers; [ hexa ];
31 };
32}