Skip to content

Commit

Permalink
python.pkgs.awkward: fix tests
Browse files Browse the repository at this point in the history
pytest.importorskip() doesn't work when we don't use pytest to run tests
  • Loading branch information
Robert Schütz committed Mar 5, 2019
1 parent 1c6a193 commit 654e6ec
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/development/python-modules/awkward/default.nix
Expand Up @@ -16,12 +16,16 @@ buildPythonPackage rec {
sha256 = "7016dc02d15b8797b59a461ccc8d218f37c335b97fa6b376638c0edd4ffc9de2";
};

buildInputs = [ pytestrunner h5py ];
checkInputs = [ pytest ];
nativeBuildInputs = [ pytestrunner ];
checkInputs = [ pytest h5py ];
propagatedBuildInputs = [ numpy ];

checkPhase = ''
py.test
'';

meta = with lib; {
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy.";
description = "Manipulate jagged, chunky, and/or bitmasked arrays as easily as Numpy";
homepage = https://github.com/scikit-hep/awkward-array;
license = licenses.bsd3;
maintainers = [ maintainers.costrouc ];
Expand Down

0 comments on commit 654e6ec

Please sign in to comment.