1{
2 lib,
3 astral,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hypothesis,
7 num2words,
8 pdm-backend,
9 pytest-timeout,
10 pytest-xdist,
11 pytestCheckHook,
12 syrupy,
13}:
14
15buildPythonPackage rec {
16 pname = "hdate";
17 version = "1.1.2";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "py-libhdate";
22 repo = "py-libhdate";
23 tag = "v${version}";
24 hash = "sha256-nM9LHcXuDpQ2j4ACF6W5H3iTJcKdbcY4bkbumIkKyeE=";
25 };
26
27 pythonRelaxDeps = [
28 "astral"
29 ];
30
31 build-system = [
32 pdm-backend
33 ];
34
35 dependencies = [
36 num2words
37 ];
38
39 optional-dependencies = {
40 astral = [ astral ];
41 };
42
43 nativeCheckInputs = [
44 hypothesis
45 pytest-timeout
46 pytest-xdist
47 pytestCheckHook
48 syrupy
49 ];
50
51 enabledTestPaths = [ "tests" ];
52
53 pythonImportsCheck = [ "hdate" ];
54
55 meta = with lib; {
56 description = "Python module for Jewish/Hebrew date and Zmanim";
57 homepage = "https://github.com/py-libhdate/py-libhdate";
58 changelog = "https://github.com/py-libhdate/py-libhdate/blob/${src.tag}/CHANGELOG.md";
59 license = licenses.gpl3Plus;
60 maintainers = with maintainers; [ fab ];
61 };
62}