Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / astral / default.nix
blob40f66dc26ab47f01e4e7a9db67a524c3202655f0
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
6 # build
7 , poetry-core
9 # runtime
10 , backports-zoneinfo
12 # tests
13 , pytestCheckHook
14 , freezegun
17 buildPythonPackage rec {
18   pname = "astral";
19   version = "3.2";
20   format = "pyproject";
22   disabled = pythonOlder "3.7";
24   src = fetchPypi {
25     inherit pname version;
26     hash = "sha256-m3w7QS6eadFyz7JL4Oat3MnxvQGijbi+vmbXXMxTPYg=";
27   };
29   nativeBuildInputs = [
30     poetry-core
31   ];
33   propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [
34     backports-zoneinfo
35   ];
37   nativeCheckInputs = [
38     freezegun
39     pytestCheckHook
40   ];
42   meta = with lib; {
43     changelog = "https://github.com/sffjunkie/astral/releases/tag/${version}";
44     description = "Calculations for the position of the sun and the moon";
45     homepage = "https://github.com/sffjunkie/astral/";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ flokli ];
48   };