nur-packages

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

default.nix (952B)


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