Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, buildPythonPackage, fetchPypi, hypothesis, lark, libcst, parso, pytestCheckHook, pytest-xdist, pythonOlder}:
buildPythonPackage rec { pname = "hypothesmith"; version = "0.3.1"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi { inherit pname version; hash = "sha256-h5kXemST6DLIF0aEKoaGdSs7G7lTDW6DK64XWEENrzo="; };
patches = [ ./remove-black.patch ];
postPatch = '' substituteInPlace setup.py \ --replace "lark-parser" "lark"
substituteInPlace tox.ini \ --replace "--cov=hypothesmith" "" \ --replace "--cov-branch" "" \ --replace "--cov-report=term-missing:skip-covered" "" \ --replace "--cov-fail-under=100" "" '';
propagatedBuildInputs = [ hypothesis lark libcst ];
nativeCheckInputs = [ parso pytestCheckHook pytest-xdist ];
pytestFlagsArray = [ "-v" ];
disabledTests = [ # https://github.com/Zac-HD/hypothesmith/issues/21 "test_source_code_from_libcst_node_type" ];
disabledTestPaths = [ # missing blib2to3 "tests/test_syntactic.py" ];
pythonImportsCheck = [ "hypothesmith" ];
meta = with lib; { description = "Hypothesis strategies for generating Python programs, something like CSmith"; homepage = "https://github.com/Zac-HD/hypothesmith"; changelog = "https://github.com/Zac-HD/hypothesmith/blob/master/CHANGELOG.md"; license = licenses.mpl20; maintainers = with maintainers; [ ]; };}