2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
2024-06-05 15:53:02 +00:00
|
|
|
mock,
|
|
|
|
six,
|
|
|
|
isPyPy,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sure";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "2.0.1";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPyPy;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
2024-09-19 14:19:46 +00:00
|
|
|
--replace "rednose = 1" "" \
|
|
|
|
--replace-fail "--cov=sure" ""
|
2023-08-10 07:59:29 +00:00
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-01-20 10:41:00 +00:00
|
|
|
mock
|
2023-08-10 07:59:29 +00:00
|
|
|
six
|
2023-01-20 10:41:00 +00:00
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_old_api.py" # require nose
|
|
|
|
];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "sure" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Utility belt for automated testing";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sure";
|
2023-01-20 10:41:00 +00:00
|
|
|
homepage = "https://sure.readthedocs.io/";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md";
|
2024-09-19 14:19:46 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|