1{
2 buildPythonPackage,
3 pythonOlder,
4 edlib,
5 cython,
6 python,
7}:
8
9buildPythonPackage {
10 inherit (edlib) pname src meta;
11 version = "1.3.9";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 sourceRoot = "${edlib.src.name}/bindings/python";
17
18 preBuild = ''
19 ln -s ${edlib.src}/edlib .
20 '';
21
22 EDLIB_OMIT_README_RST = 1;
23 EDLIB_USE_CYTHON = 1;
24
25 nativeBuildInputs = [ cython ];
26 buildInputs = [ edlib ];
27
28 checkPhase = ''
29 runHook preCheck
30 ${python.interpreter} test.py
31 runHook postCheck
32 '';
33
34 pythonImportsCheck = [ "edlib" ];
35}