Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, fetchpatch 5, isPy3k 6, pytest 7, mock 8, setuptools_scm 9}: 10 11buildPythonPackage rec { 12 pname = "pytest-mock"; 13 version = "2.0.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "b35eb281e93aafed138db25c8772b95d3756108b601947f89af503f8c629413f"; 18 }; 19 20 propagatedBuildInputs = lib.optional (!isPy3k) mock; 21 22 nativeBuildInputs = [ 23 setuptools_scm 24 ]; 25 26 checkInputs = [ 27 pytest 28 ]; 29 30 checkPhase = '' 31 pytest 32 ''; 33 34 meta = with lib; { 35 description = "Thin-wrapper around the mock package for easier use with py.test."; 36 homepage = "https://github.com/pytest-dev/pytest-mock"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ nand0p ]; 39 }; 40}