diff --git a/pkgs/development/python-modules/bite-parser/default.nix b/pkgs/development/python-modules/bite-parser/default.nix index 76abaebf6364..1b00a055a1f2 100644 --- a/pkgs/development/python-modules/bite-parser/default.nix +++ b/pkgs/development/python-modules/bite-parser/default.nix @@ -2,7 +2,7 @@ lib, buildPythonPackage, pythonOlder, - fetchPypi, + fetchFromGitHub, poetry-core, pytest-asyncio, pytestCheckHook, @@ -10,19 +10,19 @@ buildPythonPackage rec { pname = "bite-parser"; - version = "0.2.4"; + version = "0.2.5"; + pyproject = true; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; - format = "pyproject"; - - src = fetchPypi { - pname = "bite_parser"; - inherit version; - hash = "sha256-Uq2FDoo5gztMRqtdkKYX0RULhjFgy+DeujC6BTZ3CZI="; + src = fetchFromGitHub { + owner = "jgosmann"; + repo = "bite-parser"; + rev = "refs/tags/v${version}"; + hash = "sha256-C508csRbjCeLgkp66TwDuxUtMITTmub5/TFv8x80HLA="; }; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; nativeCheckInputs = [ pytest-asyncio @@ -34,7 +34,7 @@ buildPythonPackage rec { meta = { description = "Asynchronous parser taking incremental bites out of your byte input stream"; homepage = "https://github.com/jgosmann/bite-parser"; - changelog = "https://github.com/jgosmann/bite-parser/blob/v${version}/CHANGELOG.rst"; + changelog = "https://github.com/jgosmann/bite-parser/blob/${src.rev}/CHANGELOG.rst"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ dotlambda ]; };