2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
astral,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
2024-06-20 14:57:18 +00:00
|
|
|
pdm-backend,
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pytz,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hdate";
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "0.10.11";
|
2024-06-20 14:57:18 +00:00
|
|
|
pyproject = true;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "py-libhdate";
|
|
|
|
repo = "py-libhdate";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-HmdXTvtNiIE2XPFhqs7WpcceEQU7F7RsLFp6/+63yDw=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"astral"
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
build-system = [
|
|
|
|
pdm-backend
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = [
|
2021-05-20 23:08:51 +00:00
|
|
|
astral
|
|
|
|
pytz
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "tests" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "hdate" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module for Jewish/Hebrew date and Zmanim";
|
|
|
|
homepage = "https://github.com/py-libhdate/py-libhdate";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/py-libhdate/py-libhdate/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-05-20 23:08:51 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|