Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 74 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, fetchPypi, buildPythonPackage, gmp, mpfr, libmpc, ppl, cython, cysignals, gmpy2, sphinx,
# Reverse dependency sage,}:
buildPythonPackage rec { pname = "pplpy"; version = "0.8.10"; format = "setuptools";
src = fetchPypi { inherit pname version; hash = "sha256-1CohbIKRTc9NfAAN68mLsza4+D4Ca6XZUszNn4B07/0="; };
buildInputs = [ gmp mpfr libmpc ppl ];
nativeBuildInputs = [ sphinx # docbuild, called by make ];
propagatedBuildInputs = [ cython cysignals gmpy2 ];
outputs = [ "out" "doc" ];
postBuild = '' # Find the build result in order to put it into PYTHONPATH. The doc # build needs to import pplpy. build_result="$PWD/$( find build/ -type d -name 'lib.*' | head -n1 )"
echo "Building documentation" PYTHONPATH="$build_result:$PYTHONPATH" make -C docs html '';
postInstall = '' mkdir -p "$doc/share/doc" mv docs/build/html "$doc/share/doc/pplpy" '';
passthru.tests = { inherit sage; };
meta = with lib; { description = "Python wrapper for ppl"; homepage = "https://gitlab.com/videlec/pplpy"; maintainers = teams.sage.members; license = licenses.gpl3; };}