diff --git a/pkgs/development/python-modules/pyecowitt/default.nix b/pkgs/development/python-modules/pyecowitt/default.nix index e39c70baca79..0786f87c7e29 100644 --- a/pkgs/development/python-modules/pyecowitt/default.nix +++ b/pkgs/development/python-modules/pyecowitt/default.nix @@ -4,23 +4,26 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, + setuptools, }: buildPythonPackage rec { pname = "pyecowitt"; version = "0.21"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "garbled1"; - repo = pname; - rev = version; - sha256 = "5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ="; + repo = "pyecowitt"; + rev = "refs/tags/${version}"; + hash = "sha256-5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ="; }; - propagatedBuildInputs = [ aiohttp ]; + build-system = [ setuptools ]; + + dependencies = [ aiohttp ]; # Project thas no tests doCheck = false; @@ -30,7 +33,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python module for the EcoWitt Protocol"; homepage = "https://github.com/garbled1/pyecowitt"; - license = with licenses; [ asl20 ]; + changelog = "https://github.com/garbled1/pyecowitt/releases/tag/${version}"; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }