17 buildPythonPackage rec {
22 disabled = pythonOlder "3.6";
24 src = fetchFromGitHub {
27 rev = "refs/tags/v${version}";
28 hash = "sha256-7mRQ1g2mllHIaZh0jEd/iCgaDja1KJXuRnamhDo/Pbo=";
32 # we don't want to use the precommit.py script to build the package.
33 # For the tests to succeed, "ICONTRACT_SLOW" needs to be set.
34 # see https://github.com/Parquery/icontract/blob/aaeb1b06780a34b05743377e4cb2458780e808d3/precommit.py#L57
35 export ICONTRACT_SLOW=1
38 build-system = [ setuptools ];
56 "test_abstract_method_not_implemented"
60 # mypy decorator checks don't pass. For some reason mypy
61 # doesn't check the python file provided in the test.
62 "tests/test_mypy_decorators.py"
63 # Those tests seems to simply re-run some typeguard tests
64 "tests/test_typeguard.py"
68 # RuntimeWarning: coroutine '*' was never awaited
70 "ignore::RuntimeWarning"
73 pythonImportsCheck = [ "icontract" ];
76 description = "Provide design-by-contract with informative violation messages";
77 homepage = "https://github.com/Parquery/icontract";
78 changelog = "https://github.com/Parquery/icontract/blob/v${version}/CHANGELOG.rst";
79 license = licenses.mit;
80 maintainers = with maintainers; [