blob: 9f2068a0e72f325e9825e2bdd8e0fbc82cec8ae5 (
plain)
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
42
43
44
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
gitUpdater,
setuptools,
unittestCheckHook,
}:
buildPythonPackage rec {
pname = "pycparser";
version = "2.23";
pyproject = true;
src = fetchFromGitHub {
owner = "eliben";
repo = "pycparser";
tag = "release_v${version}";
hash = "sha256-dkteM8VizYf9ZLPOe8od5CZgg7a3fs4Hy+t8bGLV/GI=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "pycparser" ];
nativeCheckInputs = [ unittestCheckHook ];
unittestFlagsArray = [
"-s"
"tests"
];
passthru.updateScript = gitUpdater {
rev-prefix = "release_v";
};
meta = {
changelog = "https://github.com/eliben/pycparser/releases/tag/${src.tag}";
description = "C parser in Python";
homepage = "https://github.com/eliben/pycparser";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.dotlambda ];
};
}
|