1{ lib 2, stdenv 3, buildPythonPackage 4, fetchPypi 5, nose 6, numpy 7}: 8 9buildPythonPackage rec { 10 pname = "nose-randomly"; 11 version = "1.2.6"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "7e483a3d79e13ae760d6ade57ae07ae45bb4b223b61a805e958b4c077116c67c"; 16 }; 17 18 nativeCheckInputs = [ numpy nose ]; 19 20 checkPhase = if stdenv.isDarwin then '' 21 # Work around "OSError: AF_UNIX path too long" 22 TMPDIR="/tmp" nosetests 23 '' else '' 24 nosetests 25 ''; 26 27 meta = with lib; { 28 description = "Nose plugin to randomly order tests and control random.seed"; 29 homepage = "https://github.com/adamchainz/nose-randomly"; 30 license = licenses.bsd3; 31 maintainers = [ ]; 32 }; 33}