Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pythonPackages.pyjet: fix tests

tests are now pytest tests, and not included in the pypi tarball

authored by Robert Scott and committed by Jon ef82f49f 70c56dd4

+12 -5
+12 -5
pkgs/development/python-modules/pyjet/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, cython, nose, numpy }: 1 + { lib, buildPythonPackage, fetchFromGitHub, cython, pytest, numpy }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "pyjet"; 5 5 version = "1.6.0"; 6 6 7 - src = fetchPypi { 8 - inherit pname version; 9 - sha256 = "ab6e63f8a8fd73bbd76ef2a384eea69bc1c201f2ce876faa4151ade6c0b20615"; 7 + # tests not included in pypi tarball 8 + src = fetchFromGitHub { 9 + owner = "scikit-hep"; 10 + repo = pname; 11 + rev = version; 12 + sha256 = "0b68jnbfk2rw9i1nnwsrbrbgkj7r0w1nw0i9f8fah1wmn78k9csv"; 10 13 }; 11 14 12 15 # fix for python37 ··· 19 22 ''; 20 23 21 24 propagatedBuildInputs = [ numpy ]; 22 - checkInputs = [ nose ]; 25 + checkInputs = [ pytest ]; 26 + checkPhase = '' 27 + mv pyjet _pyjet 28 + pytest tests/ 29 + ''; 23 30 24 31 meta = with lib; { 25 32 homepage = "https://github.com/scikit-hep/pyjet";