1{
2 lib,
3 astral,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pdm-backend,
7 pytestCheckHook,
8 pythonOlder,
9 pytz,
10}:
11
12buildPythonPackage rec {
13 pname = "hdate";
14 version = "0.10.11";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "py-libhdate";
21 repo = "py-libhdate";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-HmdXTvtNiIE2XPFhqs7WpcceEQU7F7RsLFp6/+63yDw=";
24 };
25
26 pythonRelaxDeps = [
27 "astral"
28 ];
29
30 build-system = [
31 pdm-backend
32 ];
33
34 dependencies = [
35 astral
36 pytz
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 pytestFlagsArray = [ "tests" ];
42
43 pythonImportsCheck = [ "hdate" ];
44
45 meta = with lib; {
46 description = "Python module for Jewish/Hebrew date and Zmanim";
47 homepage = "https://github.com/py-libhdate/py-libhdate";
48 changelog = "https://github.com/py-libhdate/py-libhdate/releases/tag/v${version}";
49 license = licenses.gpl3Plus;
50 maintainers = with maintainers; [ fab ];
51 };
52}