nixpkgs/pkgs/development/python-modules/astral/default.nix
natsukium cb61b38f6a
python312Packages.backports-zoneinfo: remove
backports-zoneinfo has been removed, since we no longer need to backport
to python3.8
2024-11-12 22:15:39 +09:00

42 lines
792 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
# build
poetry-core,
# tests
pytestCheckHook,
freezegun,
}:
buildPythonPackage rec {
pname = "astral";
version = "3.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-m3w7QS6eadFyz7JL4Oat3MnxvQGijbi+vmbXXMxTPYg=";
};
nativeBuildInputs = [ poetry-core ];
nativeCheckInputs = [
freezegun
pytestCheckHook
];
meta = with lib; {
changelog = "https://github.com/sffjunkie/astral/releases/tag/${version}";
description = "Calculations for the position of the sun and the moon";
homepage = "https://github.com/sffjunkie/astral/";
license = licenses.asl20;
maintainers = with maintainers; [ flokli ];
};
}