diff --git a/pkgs/development/python-modules/base36/default.nix b/pkgs/development/python-modules/base36/default.nix index ff9d22aa24ea..429938a554e7 100644 --- a/pkgs/development/python-modules/base36/default.nix +++ b/pkgs/development/python-modules/base36/default.nix @@ -6,24 +6,26 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "base36"; version = "0.1.1"; pyproject = true; + __structuredAttrs = true; + src = fetchFromGitHub { owner = "tonyseek"; repo = "python-base36"; - rev = "v${version}"; - sha256 = "076nmk9s0zkmgs2zqzkaqij5cmzhf4mrhivbb9n6cvz52i1mppr5"; + tag = "v${finalAttrs.version}"; + hash = "sha256-Jd9bQxTlb2ZsWmtHmCtx8FdWZMRqfvyFfnV+oNOs1hw="; }; build-system = [ setuptools ]; postPatch = '' substituteInPlace setup.cfg \ - --replace "[pytest]" "[tool:pytest]" \ - --replace "--pep8 --cov" "" + --replace-fail "[pytest]" "[tool:pytest]" \ + --replace-fail "--pep8 --cov" "" ''; nativeCheckInputs = [ pytestCheckHook ]; @@ -37,4 +39,4 @@ buildPythonPackage rec { license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; }; -} +})