default.nix (1028B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonPackage { 8 pname = "pytest-mp"; 9 version = "2019-03-11"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "ansible"; 14 repo = "pytest-mp"; 15 rev = "49a8ff2ca9ef62d8c86854ab31d6b5d5d6cf3f28"; 16 hash = "sha256-KJEhMMQGrkLh5JJ6oGY0k2IZy+xobOF6dXP7Yc1CaQc="; 17 }; 18 19 postPatch = '' 20 substituteInPlace setup.py --replace-fail "'setuptools-markdown'" "" 21 22 # https://github.com/ansible/pytest-mp/issues/8 23 substituteInPlace pytest_mp/terminal.py --replace-fail "reporter.writer" "reporter._tw" 24 ''; 25 26 build-system = with python3Packages; [ setuptools ]; 27 28 nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; 29 30 dependencies = with python3Packages; [ 31 pytest 32 psutil 33 ]; 34 35 doCheck = false; 36 37 meta = { 38 description = "A test batcher for multiprocessed Pytest runs"; 39 homepage = "https://github.com/ansible/pytest-mp"; 40 license = lib.licenses.mit; 41 maintainers = [ lib.maintainers.sikmir ]; 42 }; 43 }