Files
nixpkgs/pkgs/development/python-modules/hdate/default.nix
T
2025-01-04 00:19:17 +01:00

53 lines
983 B
Nix

{
lib,
astral,
buildPythonPackage,
fetchFromGitHub,
pdm-backend,
pytestCheckHook,
pythonOlder,
pytz,
}:
buildPythonPackage rec {
pname = "hdate";
version = "0.11.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "py-libhdate";
repo = "py-libhdate";
tag = "v${version}";
hash = "sha256-Il20aKOPQi4J4hWQEMEQOnLdBSHCOu214YE6pxeYbfI=";
};
pythonRelaxDeps = [
"astral"
];
build-system = [
pdm-backend
];
dependencies = [
astral
pytz
];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "tests" ];
pythonImportsCheck = [ "hdate" ];
meta = with lib; {
description = "Python module for Jewish/Hebrew date and Zmanim";
homepage = "https://github.com/py-libhdate/py-libhdate";
changelog = "https://github.com/py-libhdate/py-libhdate/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fab ];
};
}