nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 728ae3acc180295a0d293f4fc2557f195d11b5f4
parent 04df369a0aa4546cc1188da27d9f85086135c32f
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 25 May 2023 15:25:16 +0400

Add pytest-mp

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/development/python-modules/pytest-mp/default.nix | 30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -107,6 +107,7 @@ lib.makeScope newScope ( modbus_tk = callPackage ./development/python-modules/modbus_tk { }; portolan = callPackage ./development/python-modules/portolan { }; pymbtiles = callPackage ./development/python-modules/pymbtiles { }; + pytest-mp = callPackage ./development/python-modules/pytest-mp { }; s2sphere = callPackage ./development/python-modules/s2sphere { }; ### EMBEDDED diff --git a/pkgs/development/python-modules/pytest-mp/default.nix b/pkgs/development/python-modules/pytest-mp/default.nix @@ -0,0 +1,30 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonPackage rec { + pname = "pytest-mp"; + version = "0.0.4"; + + src = fetchFromGitHub { + owner = "ansible"; + repo = "pytest-mp"; + rev = version; + hash = "sha256-+YttmCHFhUnKhLI8DFoI1juKN1YsxMi1vhf9KeJy+GM="; + }; + + postPatch = '' + substituteInPlace setup.py --replace "'setuptools-markdown'" "" + ''; + + nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; + + propagatedBuildInputs = with python3Packages; [ pytest psutil ]; + + doCheck = false; + + meta = with lib; { + description = "A test batcher for multiprocessed Pytest runs"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}