blob: 3df9e3c1f4800c1e16903e4c4a8a7be85a720661 (
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
45
46
47
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
pybind11,
}:
buildPythonPackage {
pname = "libparse-python";
version = "0-unstable-2025-08-30";
pyproject = true;
src = fetchFromGitHub {
owner = "librelane";
repo = "libparse-python";
rev = "ff5b26da3d66affb60696fd6c4af7f8726729c8c";
fetchSubmodules = true;
hash = "sha256-H2UHh5RbxJ65yTbLybCEanl5qA4o0e/0rAQKmIhvXeQ=";
};
postPatch = ''
substituteInPlace yosys/passes/techmap/libparse.cc \
--replace-fail \
"void LibertyParser::error" \
"__attribute__((weak)) void LibertyParser::error"
'';
build-system = [
pybind11
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "libparse" ];
meta = {
description = "Python library for parsing Yosys output";
homepage = "https://github.com/librelane/libparse-python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ gonsolo ];
platforms = lib.platforms.linux;
};
}
|