1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6
7 # build
8 poetry-core,
9
10 # tests
11 pytestCheckHook,
12 freezegun,
13}:
14
15buildPythonPackage rec {
16 pname = "astral";
17 version = "3.2";
18 format = "pyproject";
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchPypi {
23 inherit pname version;
24 hash = "sha256-m3w7QS6eadFyz7JL4Oat3MnxvQGijbi+vmbXXMxTPYg=";
25 };
26
27 nativeBuildInputs = [ poetry-core ];
28
29 nativeCheckInputs = [
30 freezegun
31 pytestCheckHook
32 ];
33
34 meta = with lib; {
35 changelog = "https://github.com/sffjunkie/astral/releases/tag/${version}";
36 description = "Calculations for the position of the sun and the moon";
37 homepage = "https://github.com/sffjunkie/astral/";
38 license = licenses.asl20;
39 maintainers = with maintainers; [ flokli ];
40 };
41}