nixpkgs/pkgs/development/python-modules/edlib/default.nix
Martin Weinelt 8ea6bde88d
treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

41 lines
564 B
Nix

{
buildPythonPackage,
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" ];
}