diff --git a/pkgs/development/python-modules/calmjs-parse/default.nix b/pkgs/development/python-modules/calmjs-parse/default.nix index 8420cbd03afd..34a2c00ce33b 100644 --- a/pkgs/development/python-modules/calmjs-parse/default.nix +++ b/pkgs/development/python-modules/calmjs-parse/default.nix @@ -8,17 +8,26 @@ buildPythonPackage rec { pname = "calmjs-parse"; - version = "1.3.0"; + version = "1.3.1"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "calmjs"; repo = "calmjs.parse"; rev = version; - hash = "sha256-QhHNp9g88RhGHqRRjg4nk7aXjAgGCOauOagWJoJ3fqc="; + hash = "sha256-xph+NuTkWfW0t/1vxWBSgsjU7YHQMnsm/W/XdkAnl7I="; }; + postPatch = '' + substituteInPlace setup.py \ + --replace "env['PYTHONPATH'] = 'src'" "env['PYTHONPATH'] += ':src'" + ''; + + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ setuptools ply @@ -43,6 +52,7 @@ buildPythonPackage rec { ]; meta = with lib; { + changelog = "https://github.com/calmjs/calmjs.parse/blob/${src.rev}/CHANGES.rst"; description = "Various parsers for ECMA standards"; homepage = "https://github.com/calmjs/calmjs.parse"; license = licenses.mit;