depot/third_party/nixpkgs/pkgs/development/python-modules/hdate/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

54 lines
1 KiB
Nix

{
lib,
astral,
buildPythonPackage,
fetchFromGitHub,
pdm-backend,
pythonRelaxDepsHook,
pytestCheckHook,
pythonOlder,
pytz,
}:
buildPythonPackage rec {
pname = "hdate";
version = "0.10.9";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "py-libhdate";
repo = "py-libhdate";
rev = "refs/tags/v${version}";
hash = "sha256-Cni8GegB8GAhtIKKCgSn3QavE/Gi9Rcm9v0grToMyq4=";
};
pythonRelaxDeps = [
"astral"
];
build-system = [
pdm-backend
pythonRelaxDepsHook
];
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 ];
};
}