diff --git a/pkgs/development/python-modules/nessclient/default.nix b/pkgs/development/python-modules/nessclient/default.nix index 5e00564cfc45..58c3aa5bf0b8 100644 --- a/pkgs/development/python-modules/nessclient/default.nix +++ b/pkgs/development/python-modules/nessclient/default.nix @@ -9,11 +9,12 @@ pytest-asyncio, pytestCheckHook, setuptools, + setuptools-scm, }: buildPythonPackage rec { pname = "nessclient"; - version = "1.2.0"; + version = "1.3.1"; pyproject = true; disabled = pythonOlder "3.8"; @@ -22,15 +23,13 @@ buildPythonPackage rec { owner = "nickw444"; repo = "nessclient"; tag = version; - hash = "sha256-AKZwKEwICuwKyCjIFxx4Zb2r9EriC0+3evBsBE9Btak="; + hash = "sha256-E4gkrhQzA1TDmjM+NPWl1Fyoagn/pLm7BRjGSpw6LXY="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace-fail "version = '0.0.0-dev'" "version = '${version}'" - ''; - - build-system = [ setuptools ]; + build-system = [ + setuptools + setuptools-scm + ]; dependencies = [ justbackoff @@ -51,7 +50,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python implementation/abstraction of the Ness D8x/D16x Serial Interface ASCII protocol"; homepage = "https://github.com/nickw444/nessclient"; - changelog = "https://github.com/nickw444/nessclient/releases/tag/${version}"; + changelog = "https://github.com/nickw444/nessclient/releases/tag/${src.tag}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; mainProgram = "ness-cli";