Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / before-after / default.nix
blobcc1164eec56bfd9154514f2ad2759dc80bac7736
1 { buildPythonPackage, fetchPypi, fetchpatch, pytestCheckHook, lib }:
3 buildPythonPackage rec {
4   pname = "before-after";
5   version = "1.0.1";
6   format = "setuptools";
8   src = fetchPypi {
9     pname = "before_after";
10     inherit version;
11     hash = "sha256-x9T5uLi7UgldoUxLnFnqaz9bnqn9zop7/HLsrg9aP4U=";
12   };
14   patches = [
15     # drop 'mock' dependency for python >=3.3
16     (fetchpatch {
17       url = "https://github.com/c-oreills/before_after/commit/cf3925148782c8c290692883d1215ae4d2c35c3c.diff";
18       hash = "sha256-FYCpLxcOLolNPiKzHlgrArCK/QKCwzag+G74wGhK4dc=";
19     })
20     (fetchpatch {
21       url = "https://github.com/c-oreills/before_after/commit/11c0ecc7e8a2f90a762831e216c1bc40abfda43a.diff";
22       hash = "sha256-8YJumF/U8H+hc7rLZLy3UhXHdYJmcuN+O8kMx8yqMJ0=";
23     })
24   ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "before_after" ];
30   meta = with lib; {
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;
35   };