94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
35 lines
781 B
Nix
35 lines
781 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hijri-converter";
|
|
version = "2.3.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-BptniSkeCDD0hgp53NNPs87qO5VRbtQBAgK5ZWuhq2E=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"hijri_converter"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar";
|
|
homepage = "https://github.com/dralshehri/hijri-converter";
|
|
changelog = "https://github.com/dralshehri/hijridate/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|