13 buildPythonPackage rec {
14 pname = "hypothesmith";
16 format = "setuptools";
18 disabled = pythonOlder "3.8";
21 inherit pname version;
22 hash = "sha256-Uj2gTAY7hzko1sKO8WUGz2S/MXdwOYN+F+a73G4szNs=";
30 substituteInPlace setup.py \
31 --replace "lark-parser" "lark"
33 substituteInPlace tox.ini \
34 --replace "--cov=hypothesmith" "" \
35 --replace "--cov-branch" "" \
36 --replace "--cov-report=term-missing:skip-covered" "" \
37 --replace "--cov-fail-under=100" ""
40 propagatedBuildInputs = [ hypothesis lark libcst ];
42 nativeCheckInputs = [ parso pytestCheckHook pytest-xdist ];
49 # https://github.com/Zac-HD/hypothesmith/issues/21
50 "test_source_code_from_libcst_node_type"
55 "tests/test_syntactic.py"
58 pythonImportsCheck = [ "hypothesmith" ];
61 description = "Hypothesis strategies for generating Python programs, something like CSmith";
62 homepage = "https://github.com/Zac-HD/hypothesmith";
63 changelog = "https://github.com/Zac-HD/hypothesmith/blob/master/CHANGELOG.md";
64 license = licenses.mpl20;
65 maintainers = with maintainers; [ ];