Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 71 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, astor, asttokens, asyncstdlib, deal, dpcontracts, numpy, pytestCheckHook, typing-extensions}:
buildPythonPackage rec { pname = "icontract"; version = "2.6.6"; format = "setuptools"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { owner = "Parquery"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-R5/FBfuTvXItfTlNZMSnO18Q+etnHbQyXFWpaOpOLes="; };
preCheck = '' # we don't want to use the precommit.py script to build the package. # For the tests to succeed, "ICONTRACT_SLOW" needs to be set. # see https://github.com/Parquery/icontract/blob/aaeb1b06780a34b05743377e4cb2458780e808d3/precommit.py#L57 export ICONTRACT_SLOW=1 '';
propagatedBuildInputs = [ asttokens typing-extensions ];
nativeCheckInputs = [ astor asyncstdlib deal dpcontracts numpy pytestCheckHook ];
disabledTestPaths = [ # mypy decorator checks don't pass. For some reason mypy # doesn't check the python file provided in the test. "tests/test_mypy_decorators.py" # those tests seems to simply re-run some typeguard tests "tests/test_typeguard.py" ];
pytestFlagsArray = [ # RuntimeWarning: coroutine '*' was never awaited "-W" "ignore::RuntimeWarning" ];
pythonImportsCheck = [ "icontract" ];
meta = with lib; { description = "Provide design-by-contract with informative violation messages"; homepage = "https://github.com/Parquery/icontract"; changelog = "https://github.com/Parquery/icontract/blob/v${version}/CHANGELOG.rst"; license = licenses.mit; maintainers = with maintainers; [ gador thiagokokada ]; };}