diff --git a/pkgs/development/python-modules/asyncserial/default.nix b/pkgs/development/python-modules/asyncserial/default.nix index 2eab95bd4dfb..562ce983e270 100644 --- a/pkgs/development/python-modules/asyncserial/default.nix +++ b/pkgs/development/python-modules/asyncserial/default.nix @@ -2,29 +2,32 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, pyserial, }: -buildPythonPackage { +buildPythonPackage rec { pname = "asyncserial"; - version = "unstable-2022-06-10"; - format = "setuptools"; + version = "1.0"; + pyproject = true; src = fetchFromGitHub { owner = "m-labs"; repo = "asyncserial"; - rev = "446559fec892a556876b17d17f182ae9647d5952"; - hash = "sha256-WExmgh55sTH2w7wV3i96J1F1FN7L5rX3L/Ayvt2Kw/g="; + tag = version; + hash = "sha256-ZHzgJnbsDVxVcp09LXq9JZp46+dorgdP8bAiTB59K28="; }; - propagatedBuildInputs = [ pyserial ]; + build-system = [ setuptools ]; + + dependencies = [ pyserial ]; pythonImportsCheck = [ "asyncserial" ]; - meta = with lib; { + meta = { description = "asyncio support for pyserial"; homepage = "https://github.com/m-labs/asyncserial"; - license = licenses.bsd2; - maintainers = with maintainers; [ doronbehar ]; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ doronbehar ]; }; }