1{
2 lib,
3 betamax,
4 buildPythonPackage,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8 requests-toolbelt,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "betamax-matchers";
14 version = "0.4.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "betamaxpy";
21 repo = "betamax_matchers";
22 tag = version;
23 hash = "sha256-BV9DOfZLDAZIr2E75l988QxFWWvazBL9VttxGFIez1M=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 betamax
30 requests-toolbelt
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "betamax_matchers" ];
36
37 meta = with lib; {
38 description = "Group of experimental matchers for Betamax";
39 homepage = "https://github.com/sigmavirus24/betamax_matchers";
40 changelog = "https://github.com/betamaxpy/betamax_matchers/blob/${version}/HISTORY.rst";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ pSub ];
43 };
44}