f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
35 lines
570 B
Nix
35 lines
570 B
Nix
{
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
edlib,
|
|
cython,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (edlib) pname src meta;
|
|
version = "1.3.9";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
sourceRoot = "${edlib.src.name}/bindings/python";
|
|
|
|
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" ];
|
|
}
|