nixpkgs/pkgs/development/python-modules/nose-randomly/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

35 lines
717 B
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchPypi
, nose
, numpy
}:
buildPythonPackage rec {
pname = "nose-randomly";
version = "1.2.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "7e483a3d79e13ae760d6ade57ae07ae45bb4b223b61a805e958b4c077116c67c";
};
nativeCheckInputs = [ numpy nose ];
checkPhase = if stdenv.isDarwin then ''
# Work around "OSError: AF_UNIX path too long"
TMPDIR="/tmp" nosetests
'' else ''
nosetests
'';
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 = [ ];
};
}