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