diff --git a/pkgs/development/python-modules/ijson/default.nix b/pkgs/development/python-modules/ijson/default.nix index 516fcdd8f488..b494c5012b8a 100644 --- a/pkgs/development/python-modules/ijson/default.nix +++ b/pkgs/development/python-modules/ijson/default.nix @@ -1,29 +1,28 @@ { lib, buildPythonPackage, - cffi, - fetchPypi, + fetchFromGitHub, pytestCheckHook, setuptools, yajl, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "ijson"; - version = "3.5.1"; + version = "3.6.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-r0C9GoX1XbC4swcVyFh2Ewa9ktVZAUhjb3XDMJ5udr0="; + src = fetchFromGitHub { + owner = "ICRAR"; + repo = "ijson"; + tag = "v${finalAttrs.version}"; + hash = "sha256-jlap3pf17SM8AQOoYZCPuGOnNC/oRLBONBgA5NgJQYQ="; }; build-system = [ setuptools ]; buildInputs = [ yajl ]; - dependencies = [ cffi ]; - nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "ijson" ]; @@ -31,8 +30,8 @@ buildPythonPackage rec { meta = { description = "Iterative JSON parser with a standard Python iterator interface"; homepage = "https://github.com/ICRAR/ijson"; - changelog = "https://github.com/ICRAR/ijson/blob/v${version}/CHANGELOG.md"; + changelog = "https://github.com/ICRAR/ijson/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.bsd3; maintainers = [ ]; }; -} +})