mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-31 01:02:20 +00:00
34 lines
745 B
Nix
34 lines
745 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest8_3CheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "esprima";
|
|
version = "4.0.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kronuz";
|
|
repo = "esprima-python";
|
|
rev = "v${version}";
|
|
hash = "sha256-WtkPCReXhxyr6pOzE9gsdIeBlLk+nSnbxkS3OowEaHo=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytest8_3CheckHook ];
|
|
|
|
enabledTestPaths = [ "test/__main__.py::TestEsprima" ];
|
|
|
|
pythonImportsCheck = [ "esprima" ];
|
|
|
|
meta = {
|
|
description = "Python parser for standard-compliant ECMAScript";
|
|
mainProgram = "esprima";
|
|
homepage = "https://github.com/Kronuz/esprima-python";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|