diff options
| author | Maximilian Bosch <maximilian@mbosch.me> | 2019-10-11 21:48:30 +0200 |
|---|---|---|
| committer | Maximilian Bosch <maximilian@mbosch.me> | 2019-10-11 21:49:40 +0200 |
| commit | b6237fb589b564a3461c845b2b5c820f5d2d80c2 (patch) | |
| tree | 5dee79255bf58edc3b5a891076944a55bd392eb5 /pkgs/development/python-modules/diff-match-patch | |
| parent | Merge pull request #70987 from freepotion/update-my-email (diff) | |
| download | nixpkgs-b6237fb589b564a3461c845b2b5c820f5d2d80c2.tar.gz | |
python3Packages.diff-match-patch: fix build
Rather than using autodiscovery, the checkPhase should import
`__init__.py` from `diff_match_patch.tests to execute all relevant
tests. Otherwise several python2-related tests are executed in a py3 env
and break the build.
See also: https://hydra.nixos.org/build/102482273
Diffstat (limited to 'pkgs/development/python-modules/diff-match-patch')
| -rw-r--r-- | pkgs/development/python-modules/diff-match-patch/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/diff-match-patch/default.nix b/pkgs/development/python-modules/diff-match-patch/default.nix index cf1bebad1443..5887575f195e 100644 --- a/pkgs/development/python-modules/diff-match-patch/default.nix +++ b/pkgs/development/python-modules/diff-match-patch/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi }: +{ lib, buildPythonPackage, fetchPypi, python }: buildPythonPackage rec { pname = "diff-match-patch"; @@ -14,4 +14,8 @@ buildPythonPackage rec { inherit pname version; sha256 = "a809a996d0f09b9bbd59e9bbd0b71eed8c807922512910e05cbd3f9480712ddb"; }; + + checkPhase = '' + ${python.interpreter} -m unittest -v diff_match_patch.tests + ''; } |
