diff --git a/pkgs/development/python-modules/pyavm/default.nix b/pkgs/development/python-modules/pyavm/default.nix index ef8a82a1cd42..45cf827a82a8 100644 --- a/pkgs/development/python-modules/pyavm/default.nix +++ b/pkgs/development/python-modules/pyavm/default.nix @@ -1,39 +1,44 @@ { lib , buildPythonPackage , fetchPypi -, pytestCheckHook + +# build-system +, setuptools +, setuptools-scm + +# tests , astropy -, astropy-helpers +, numpy , pillow +, pytestCheckHook }: buildPythonPackage rec { pname = "pyavm"; - version = "0.9.5"; - format = "setuptools"; + version = "0.9.6"; + pyproject = true; src = fetchPypi { pname = "PyAVM"; inherit version; - hash = "sha256-gV78ypvYwohHmdjP3lN5F97PfmxuV91tvw5gsYeZ7i8="; + hash = "sha256-s7eLPoAHDbY9tPt3RA5zJg+NuTtVV/SqpUUR3NrG8m0="; }; - propagatedBuildInputs = [ - astropy-helpers + nativeBuildInputs = [ + setuptools + setuptools-scm ]; nativeCheckInputs = [ astropy + numpy pillow pytestCheckHook ]; - # Disable automatic update of the astropy-helper module - postPatch = '' - substituteInPlace setup.cfg --replace "auto_use = True" "auto_use = False" - ''; - - pythonImportsCheck = [ "pyavm" ]; + pythonImportsCheck = [ + "pyavm" + ]; meta = with lib; { description = "Simple pure-python AVM meta-data handling";