16 buildPythonPackage rec {
21 disabled = pythonOlder "3.6";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-R5/FBfuTvXItfTlNZMSnO18Q+etnHbQyXFWpaOpOLes=";
31 # we don't want to use the precommit.py script to build the package.
32 # For the tests to succeed, "ICONTRACT_SLOW" needs to be set.
33 # see https://github.com/Parquery/icontract/blob/aaeb1b06780a34b05743377e4cb2458780e808d3/precommit.py#L57
34 export ICONTRACT_SLOW=1
57 "test_abstract_method_not_implemented"
61 # mypy decorator checks don't pass. For some reason mypy
62 # doesn't check the python file provided in the test.
63 "tests/test_mypy_decorators.py"
64 # Those tests seems to simply re-run some typeguard tests
65 "tests/test_typeguard.py"
69 # RuntimeWarning: coroutine '*' was never awaited
70 "-W" "ignore::RuntimeWarning"
73 pythonImportsCheck = [
78 description = "Provide design-by-contract with informative violation messages";
79 homepage = "https://github.com/Parquery/icontract";
80 changelog = "https://github.com/Parquery/icontract/blob/v${version}/CHANGELOG.rst";
81 license = licenses.mit;
82 maintainers = with maintainers; [ gador thiagokokada ];