2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
edlib,
|
|
|
|
cython,
|
|
|
|
python,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
inherit (edlib) pname src meta;
|
|
|
|
version = "1.3.9";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${edlib.src.name}/bindings/python";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
ln -s ${edlib.src}/edlib .
|
|
|
|
'';
|
|
|
|
|
|
|
|
EDLIB_OMIT_README_RST = 1;
|
|
|
|
EDLIB_USE_CYTHON = 1;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
buildInputs = [ edlib ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} test.py
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "edlib" ];
|
|
|
|
}
|