Files
nixpkgs/pkgs/development/python-modules/edlib/default.nix
Ben Darwin d261f16536 python313Packages.edlib: 1.3.9 -> 1.3.9post1
edlib: unstable-2021-08-20 -> 1.3.9post1
2025-08-22 10:59:27 -04:00

43 lines
579 B
Nix

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