diff --git a/pkgs/development/python-modules/hypothesmith/default.nix b/pkgs/development/python-modules/hypothesmith/default.nix new file mode 100644 index 00000000000..4bf1ca8d02f --- /dev/null +++ b/pkgs/development/python-modules/hypothesmith/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchPypi, hypothesis, lark-parser, libcst, black, parso, pytestCheckHook, pytest-cov, pytest-xdist }: + +buildPythonPackage rec { + pname = "hypothesmith"; + version = "0.1.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-+f8EexXE7TEs49pX6idXD4bWtTzhKvnyXlnmV2oAQQo="; + }; + + propagatedBuildInputs = [ hypothesis lark-parser libcst ]; + + checkInputs = [ black parso pytestCheckHook pytest-cov pytest-xdist ]; + + pythonImportsCheck = [ "hypothesmith" ]; + + meta = with lib; { + description = "Hypothesis strategies for generating Python programs, something like CSmith"; + homepage = "https://github.com/Zac-HD/hypothesmith"; + license = licenses.mpl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ff571ab7880..671680786b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3083,6 +3083,10 @@ in { hypothesis = if isPy3k then callPackage ../development/python-modules/hypothesis { } else self.hypothesis_4; + hypothesmith = callPackage ../development/python-modules/hypothesmith { + libcst = self.libcst.override { doCheck = false; }; + }; + hyppo = callPackage ../development/python-modules/hyppo { }; i3ipc = callPackage ../development/python-modules/i3ipc { };