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
1 changed files with 13 additions and 5 deletions

View File

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