1 { buildPythonPackage, fetchPypi, fetchpatch, pytestCheckHook, lib }:
3 buildPythonPackage rec {
4 pname = "before-after";
9 pname = "before_after";
11 hash = "sha256-x9T5uLi7UgldoUxLnFnqaz9bnqn9zop7/HLsrg9aP4U=";
15 # drop 'mock' dependency for python >=3.3
17 url = "https://github.com/c-oreills/before_after/commit/cf3925148782c8c290692883d1215ae4d2c35c3c.diff";
18 hash = "sha256-FYCpLxcOLolNPiKzHlgrArCK/QKCwzag+G74wGhK4dc=";
21 url = "https://github.com/c-oreills/before_after/commit/11c0ecc7e8a2f90a762831e216c1bc40abfda43a.diff";
22 hash = "sha256-8YJumF/U8H+hc7rLZLy3UhXHdYJmcuN+O8kMx8yqMJ0=";
26 nativeCheckInputs = [ pytestCheckHook ];
28 pythonImportsCheck = [ "before_after" ];
31 description = "sugar over the Mock library to help test race conditions";
32 homepage = "https://github.com/c-oreills/before_after";
33 maintainers = with maintainers; [ yuka ];
34 license = licenses.gpl2Only;