Files
nixpkgs/pkgs/development/python-modules/hijridate/default.nix
T
2026-01-09 16:01:17 +00:00

39 lines
870 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
hatch-fancy-pypi-readme,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "hijridate";
version = "2.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "dralshehri";
repo = "hijridate";
tag = "v${version}";
hash = "sha256-xnFF81l1ZqtH91NzYvjzXpXpN/zeHdARJYx6L5VNBSo=";
};
build-system = [
hatchling
hatch-fancy-pypi-readme
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "hijridate" ];
meta = {
description = "Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar";
homepage = "https://github.com/dralshehri/hijridate";
changelog = "https://github.com/dralshehri/hijridate/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}