2021-01-25 08:26:54 +00:00
|
|
|
{
|
|
|
|
lib,
|
2021-07-20 21:21:18 +00:00
|
|
|
betamax,
|
2024-05-03 08:11:00 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2021-07-20 21:21:18 +00:00
|
|
|
requests-toolbelt,
|
2024-05-03 08:11:00 +00:00
|
|
|
setuptools,
|
2021-07-20 21:21:18 +00:00
|
|
|
}:
|
2017-11-07 13:00:05 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "betamax-matchers";
|
|
|
|
version = "0.4.0";
|
2024-05-03 08:11:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-11-07 13:00:05 +00:00
|
|
|
|
2024-05-03 08:11:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "betamaxpy";
|
|
|
|
repo = "betamax_matchers";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
hash = "sha256-BV9DOfZLDAZIr2E75l988QxFWWvazBL9VttxGFIez1M=";
|
2017-11-07 13:00:05 +00:00
|
|
|
};
|
|
|
|
|
2024-05-03 08:11:00 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-07-20 21:21:18 +00:00
|
|
|
betamax
|
|
|
|
requests-toolbelt
|
|
|
|
];
|
2017-11-07 13:00:05 +00:00
|
|
|
|
2024-05-03 08:11:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "betamax_matchers" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-05-03 08:11:00 +00:00
|
|
|
description = "A group of experimental matchers for Betamax";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/sigmavirus24/betamax_matchers";
|
2024-05-03 08:11:00 +00:00
|
|
|
changelog = "https://github.com/betamaxpy/betamax_matchers/blob/${version}/HISTORY.rst";
|
2017-11-07 13:00:05 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
|
|
|
};
|
|
|
|
}
|