mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 01:15:51 +00:00
cb61b38f6a
backports-zoneinfo has been removed, since we no longer need to backport to python3.8
42 lines
792 B
Nix
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 ];
|
|
};
|
|
}
|