From c5d73ca2d0fca4086aba4ba6c82fc0faceb7aa34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 14 Feb 2021 04:09:25 +0100 Subject: [PATCH] pythonPackages.hypothesmith: init at 0.1.8 --- .../python-modules/hypothesmith/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/hypothesmith/default.nix diff --git a/pkgs/development/python-modules/hypothesmith/default.nix b/pkgs/development/python-modules/hypothesmith/default.nix new file mode 100644 index 000000000000..4bf1ca8d02f7 --- /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 ff571ab78808..671680786b45 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 { };