diff --git a/pkgs/development/python-modules/vobject/default.nix b/pkgs/development/python-modules/vobject/default.nix index db8692e77b06..44a769b306b3 100644 --- a/pkgs/development/python-modules/vobject/default.nix +++ b/pkgs/development/python-modules/vobject/default.nix @@ -3,29 +3,42 @@ buildPythonPackage, fetchPypi, isPyPy, - python, + setuptools, python-dateutil, + pytz, + six, + pytestCheckHook, }: buildPythonPackage rec { - version = "0.9.7"; - format = "setuptools"; + version = "0.9.8"; pname = "vobject"; + pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-q3J7+B3oiYStpcEfBm8eFkmQPT49fskfHOloFyr9UlY="; + hash = "sha256-2wCn9NtJOXFV3YpoceiioBdabrpaZUww6RD4KylRS1g="; }; disabled = isPyPy; - propagatedBuildInputs = [ python-dateutil ]; + build-system = [ setuptools ]; - checkPhase = "${python.interpreter} tests.py"; + dependencies = [ + python-dateutil + pytz + six + ]; + + pythonImportsCheck = [ "vobject" ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pytestFlagsArray = [ "tests.py" ]; meta = with lib; { description = "Module for reading vCard and vCalendar files"; - homepage = "http://eventable.github.io/vobject/"; + homepage = "https://github.com/py-vobject/vobject"; license = licenses.asl20; maintainers = [ ]; };