1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, edlib
6, cython
7, python
8}:
9
10buildPythonPackage {
11 inherit (edlib) pname src meta;
12 version = "1.3.9";
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
36}