Files
nixpkgs/pkgs/development/python-modules/calmjs-parse/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

57 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
ply,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "calmjs-parse";
version = "1.3.3";
pyproject = true;
src = fetchFromGitHub {
owner = "calmjs";
repo = "calmjs.parse";
tag = version;
hash = "sha256-aGGIwQBHToujc69zzIeEbvmYwLKA5X3bamVWBRmJtSE=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "env['PYTHONPATH'] = 'src'" "env['PYTHONPATH'] += ':src'"
'';
build-system = [ setuptools ];
dependencies = [
setuptools
ply
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"calmjs.parse"
"calmjs.parse.asttypes"
"calmjs.parse.parsers"
"calmjs.parse.rules"
"calmjs.parse.sourcemap"
"calmjs.parse.unparsers.es5"
"calmjs.parse.walkers"
];
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;
maintainers = with maintainers; [ dotlambda ];
};
}