Files
nixpkgs/pkgs/development/python-modules/edlib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
579 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
buildPythonPackage,
pythonOlder,
edlib,
cython,
python,
setuptools,
}:
buildPythonPackage {
inherit (edlib)
pname
src
version
meta
;
pyproject = true;
sourceRoot = "${edlib.src.name}/bindings/python";
preBuild = ''
ln -s ${edlib.src}/edlib .
'';
env.EDLIB_OMIT_README_RST = 1;
env.EDLIB_USE_CYTHON = 1;
build-system = [
setuptools
cython
];
buildInputs = [ edlib ];
checkPhase = ''
runHook preCheck
${python.interpreter} test.py
runHook postCheck
'';
pythonImportsCheck = [ "edlib" ];
}