pythonPackages.pyjet: fix tests

tests are now pytest tests, and not included in the pypi tarball
This commit is contained in:
Robert Scott 2020-09-10 21:16:39 +01:00 committed by Jon
parent 70c56dd486
commit ef82f49fc0

View file

@ -1,12 +1,15 @@
{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }: { lib, buildPythonPackage, fetchFromGitHub, cython, pytest, numpy }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pyjet"; pname = "pyjet";
version = "1.6.0"; version = "1.6.0";
src = fetchPypi { # tests not included in pypi tarball
inherit pname version; src = fetchFromGitHub {
sha256 = "ab6e63f8a8fd73bbd76ef2a384eea69bc1c201f2ce876faa4151ade6c0b20615"; owner = "scikit-hep";
repo = pname;
rev = version;
sha256 = "0b68jnbfk2rw9i1nnwsrbrbgkj7r0w1nw0i9f8fah1wmn78k9csv";
}; };
# fix for python37 # fix for python37
@ -19,7 +22,11 @@ buildPythonPackage rec {
''; '';
propagatedBuildInputs = [ numpy ]; propagatedBuildInputs = [ numpy ];
checkInputs = [ nose ]; checkInputs = [ pytest ];
checkPhase = ''
mv pyjet _pyjet
pytest tests/
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/scikit-hep/pyjet"; homepage = "https://github.com/scikit-hep/pyjet";