From fef59b3b8519bc261fa1bc00996bd6ea1624b6dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 26 Nov 2023 17:49:21 -0800 Subject: [PATCH] python311Packages.calmjs-parse: 1.3.0 -> 1.3.1 Diff: https://github.com/calmjs/calmjs.parse/compare/1.3.0...1.3.1 Changelog: https://github.com/calmjs/calmjs.parse/blob/1.3.1/CHANGES.rst --- .../python-modules/calmjs-parse/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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;