python313Packages.astral: modernize
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
pythonOlder,
|
||||
|
||||
# build
|
||||
poetry-core,
|
||||
@@ -15,26 +14,26 @@
|
||||
buildPythonPackage rec {
|
||||
pname = "astral";
|
||||
version = "3.2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-m3w7QS6eadFyz7JL4Oat3MnxvQGijbi+vmbXXMxTPYg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
freezegun
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "astral" ];
|
||||
|
||||
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/";
|
||||
changelog = "https://github.com/sffjunkie/astral/releases/tag/${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ flokli ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user