python310Packages.edlib: init at 1.3.9

This commit is contained in:
Ben Darwin
2023-01-26 19:09:45 -05:00
parent 9317002b85
commit cbb3c57636
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, edlib
, cython
, python
}:
buildPythonPackage {
inherit (edlib) pname src meta;
version = "1.3.9";
disabled = pythonOlder "3.6";
sourceRoot = "source/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" ];
}