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