blob: 774288c699438351d9e35d51a72df6f123eae296 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "esprima";
version = "4.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Kronuz";
repo = "esprima-python";
rev = "v${version}";
sha256 = "WtkPCReXhxyr6pOzE9gsdIeBlLk+nSnbxkS3OowEaHo=";
};
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [
"test/__main__.py::TestEsprima"
];
pythonImportsCheck = [
"esprima"
];
meta = with lib; {
description = "Python parser for standard-compliant ECMAScript";
mainProgram = "esprima";
homepage = "https://github.com/Kronuz/esprima-python";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}
|