nur-packages

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

default.nix (928B)


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