diff --git a/pkgs/development/python-modules/torpy/default.nix b/pkgs/development/python-modules/torpy/default.nix index f09428189f12..5030ac3a826b 100644 --- a/pkgs/development/python-modules/torpy/default.nix +++ b/pkgs/development/python-modules/torpy/default.nix @@ -8,15 +8,17 @@ requests, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "torpy"; version = "1.1.6"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "torpyorg"; repo = "torpy"; - rev = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Ni7GcpkxzAMtP4wBOFsi4KnxK+nC0XCZR/2Z/eS/C+w="; }; @@ -42,4 +44,4 @@ buildPythonPackage rec { license = lib.licenses.asl20; maintainers = with lib.maintainers; [ larsr ]; }; -} +})