2018-11-29 14:08:28 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nose-randomly";
|
2019-02-14 08:37:21 +01:00
|
|
|
version = "1.2.6";
|
2018-11-29 14:08:28 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:21 +01:00
|
|
|
sha256 = "7e483a3d79e13ae760d6ade57ae07ae45bb4b223b61a805e958b4c077116c67c";
|
2018-11-29 14:08:28 +01:00
|
|
|
};
|
|
|
|
|
2019-01-05 11:54:27 +01:00
|
|
|
checkInputs = [ numpy nose ];
|
2018-11-29 14:08:28 +01:00
|
|
|
|
2018-12-23 18:40:51 +01:00
|
|
|
checkPhase = ''
|
|
|
|
nosetests
|
|
|
|
'';
|
|
|
|
|
2018-11-29 14:08:28 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Nose plugin to randomly order tests and control random.seed";
|
|
|
|
homepage = https://github.com/adamchainz/nose-randomly;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|