pythonPackages.pyjet: fix tests
tests are now pytest tests, and not included in the pypi tarball
This commit is contained in:
parent
70c56dd486
commit
ef82f49fc0
@ -1,12 +1,15 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, cython, pytest, numpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyjet";
|
||||
version = "1.6.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "ab6e63f8a8fd73bbd76ef2a384eea69bc1c201f2ce876faa4151ade6c0b20615";
|
||||
# tests not included in pypi tarball
|
||||
src = fetchFromGitHub {
|
||||
owner = "scikit-hep";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0b68jnbfk2rw9i1nnwsrbrbgkj7r0w1nw0i9f8fah1wmn78k9csv";
|
||||
};
|
||||
|
||||
# fix for python37
|
||||
@ -19,7 +22,11 @@ buildPythonPackage rec {
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
checkInputs = [ nose ];
|
||||
checkInputs = [ pytest ];
|
||||
checkPhase = ''
|
||||
mv pyjet _pyjet
|
||||
pytest tests/
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/scikit-hep/pyjet";
|
||||
|
Loading…
Reference in New Issue
Block a user