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 {
|
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";
|
||||||
|
Loading…
Reference in New Issue
Block a user