504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
588 B
Nix
37 lines
588 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, 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" ];
|
|
|
|
}
|