Files
nixpkgs/pkgs/development/python-modules/astral/default.nix
2025-08-15 01:58:57 +02:00

41 lines
773 B
Nix

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