Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
953 B · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ lib, buildPythonPackage, fetchPypi, numpy, packaging, python, pythonOlder}:
buildPythonPackage rec { pname = "numexpr"; version = "2.8.7"; format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi { inherit pname version; hash = "sha256-WW7rO7/ryRL0tuqvhCthunIs69uLxC3++mV9OnSVOEk="; };
nativeBuildInputs = [ numpy ];
propagatedBuildInputs = [ numpy packaging ];
preBuild = '' # Remove existing site.cfg, use the one we built for numpy ln -s ${numpy.cfg} site.cfg '';
checkPhase = '' runtest="$(pwd)/numexpr/tests/test_numexpr.py" pushd "$out" ${python.interpreter} "$runtest" popd '';
pythonImportsCheck = [ "numexpr" ];
meta = with lib; { description = "Fast numerical array expression evaluator for NumPy"; homepage = "https://github.com/pydata/numexpr"; license = licenses.mit; maintainers = with maintainers; [ ]; };}