diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2018-11-01 22:31:11 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2018-11-01 22:31:11 -0500 |
commit | c7c278dc0fdf97aea865efebb76454df6b44af2b (patch) | |
tree | 95a1f3006b1043dddbc0e21353bbc153c6efb747 /pkgs/development/tools/pyre | |
parent | f422f8d0ad94cbb0ba1d0daf2c5a95e8ddf14a4d (diff) | |
download | nixlib-c7c278dc0fdf97aea865efebb76454df6b44af2b.tar nixlib-c7c278dc0fdf97aea865efebb76454df6b44af2b.tar.gz nixlib-c7c278dc0fdf97aea865efebb76454df6b44af2b.tar.bz2 nixlib-c7c278dc0fdf97aea865efebb76454df6b44af2b.tar.lz nixlib-c7c278dc0fdf97aea865efebb76454df6b44af2b.tar.xz nixlib-c7c278dc0fdf97aea865efebb76454df6b44af2b.tar.zst nixlib-c7c278dc0fdf97aea865efebb76454df6b44af2b.zip |
pyre: enable tests
Diffstat (limited to 'pkgs/development/tools/pyre')
-rw-r--r-- | pkgs/development/tools/pyre/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/tools/pyre/default.nix b/pkgs/development/tools/pyre/default.nix index 108f8bdb3ab0..a0ea5f59f255 100644 --- a/pkgs/development/tools/pyre/default.nix +++ b/pkgs/development/tools/pyre/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, ocamlPackages, makeWrapper, writeScript -, dune, python3, rsync, fetchpatch }: +, dune, python3, rsync, fetchpatch, buck }: let # Manually set version - the setup script requires # hg and git + keeping the .git directory around. @@ -120,6 +120,10 @@ in python3.pkgs.buildPythonApplication rec { substituteInPlace scripts/build-pypi-package.sh \ --replace 'NIX_BINARY_FILE' '${pyre-bin}/bin/pyre.bin' \ --replace 'BUILD_ROOT="$(mktemp -d)"' "BUILD_ROOT=$(pwd)/build" + substituteInPlace client/buck.py \ + --replace '"buck"' '"${buck}/bin/buck"' + substituteInPlace client/tests/buck_test.py \ + --replace '"buck"' '"${buck}/bin/buck"' ''; buildInputs = [ pyre-bin rsync ]; @@ -128,6 +132,8 @@ in python3.pkgs.buildPythonApplication rec { bash scripts/build-pypi-package.sh --version ${pyre-version} --bundle-typeshed ${typeshed} cp -r build/dist dist ''; - - doCheck = false; # can't open file 'nix_run_setup': + checkPhase = '' + sed -i 's/which python3/command -v python3/g' scripts/run-python-tests.sh + bash scripts/run-python-tests.sh + ''; } |