18 buildPythonPackage rec {
21 format = "setuptools";
24 inherit pname version;
25 hash = "sha256-1CohbIKRTc9NfAAN68mLsza4+D4Ca6XZUszNn4B07/0=";
36 sphinx # docbuild, called by make
39 propagatedBuildInputs = [
51 # Find the build result in order to put it into PYTHONPATH. The doc
52 # build needs to import pplpy.
53 build_result="$PWD/$( find build/ -type d -name 'lib.*' | head -n1 )"
55 echo "Building documentation"
56 PYTHONPATH="$build_result:$PYTHONPATH" make -C docs html
60 mkdir -p "$doc/share/doc"
61 mv docs/build/html "$doc/share/doc/pplpy"
69 description = "Python wrapper for ppl";
70 homepage = "https://gitlab.com/videlec/pplpy";
71 maintainers = teams.sage.members;
72 license = licenses.gpl3;