python311Packages.pymeeus: refactor
- normalize pname - use PEP517 builder and lingo - use pytest7CheckHook
This commit is contained in:
parent
44ee4bbc60
commit
8919ff737b
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user