python311Packages.pymeeus: refactor

- normalize pname
- use PEP517 builder and lingo
- use pytest7CheckHook
This commit is contained in:
Martin Weinelt 2024-03-26 01:13:30 +01:00
parent 44ee4bbc60
commit 8919ff737b
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,8 +1,14 @@
{ lib, buildPythonPackage, fetchPypi, pytest }: { lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytest7CheckHook
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pymeeus"; pname = "pymeeus";
version = "0.5.12"; version = "0.5.12";
pyproject = true;
src = fetchPypi { src = fetchPypi {
pname = "PyMeeus"; pname = "PyMeeus";
@ -10,11 +16,13 @@ buildPythonPackage rec {
hash = "sha256-VI9xhr2LlsvAac9kmo6ON33OSax0SGcJhJ/mOpnK1oQ="; hash = "sha256-VI9xhr2LlsvAac9kmo6ON33OSax0SGcJhJ/mOpnK1oQ=";
}; };
nativeCheckInputs = [ pytest ]; build-system = [
setuptools
];
checkPhase = '' nativeCheckInputs = [
pytest . pytest7CheckHook
''; ];
meta = with lib; { meta = with lib; {
homepage = "https://github.com/architest/pymeeus"; homepage = "https://github.com/architest/pymeeus";