159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
56 lines
1 KiB
Nix
56 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
pytestCheckHook,
|
|
mock,
|
|
six,
|
|
isPyPy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sure";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
disabled = isPyPy;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "rednose = 1" "" \
|
|
--replace-fail "--cov=sure" ""
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
mock
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
mock
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
"tests/test_old_api.py" # require nose
|
|
];
|
|
|
|
pythonImportsCheck = [ "sure" ];
|
|
|
|
meta = {
|
|
description = "Utility belt for automated testing";
|
|
mainProgram = "sure";
|
|
homepage = "https://sure.readthedocs.io/";
|
|
changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ sigmanificient ];
|
|
};
|
|
}
|