Uh oh!
There was an error while loading. Please reload this page.
forked from efabless/libparse-python
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.nix
More file actions
Latest commit
46 lines (38 loc) · 992 Bytes
/
Copy pathdefault.nix
File metadata and controls
46 lines (38 loc) · 992 Bytes
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
{
lib,
src ? ./.,
buildPythonPackage,
pytest,
pybind11,
pytestCheckHook,
perl,
}: let
version_file=builtins.readFile./libparse/__version__.py;
version_list=builtins.match''.+''\n__version__ = "([^"]+)"''\n.+''$''version_file;
version=builtins.headversion_list;
in
buildPythonPackage{
pname="libparse";
inheritversion;
inheritsrc;
postPatch=''
perl -i -pe 'print "__attribute__((weak)) " if /LibertyParser::error/' yosys/passes/techmap/libparse.cc
'';
nativeBuildInputs=[
perl
];
buildInputs=[
pybind11
];
pythonImportsCheck=["libparse"];
doCheck=true;
nativeCheckInputs=[
pytestCheckHook
];
meta={
description="Python wrapper around Yosys's libparse";
license=withlib.licenses;[asl20];
homepage="https://github.com/librelane/libparse-python";
platforms=withlib.platforms;linux++darwin;
};
}