Files
nixpkgs/pkgs/development/python-modules/hypothesmith/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

62 lines
1.1 KiB
Nix

{
lib,
black,
buildPythonPackage,
fetchPypi,
hypothesis,
lark,
libcst,
parso,
pytestCheckHook,
pytest-cov-stub,
pytest-xdist,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "hypothesmith";
version = "0.3.3";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-lsFIAtbI6F2JdSZBdoeNtUso0u2SH9v+3C5rjOPIFxY=";
};
build-system = [ setuptools ];
dependencies = [
hypothesis
lark
libcst
];
nativeCheckInputs = [
black
parso
pytestCheckHook
pytest-cov-stub
pytest-xdist
];
disabledTests = [
# super slow
"test_source_code_from_libcst_node_type"
# https://github.com/Zac-HD/hypothesmith/issues/38
"test_black_autoformatter_from_grammar"
];
pythonImportsCheck = [ "hypothesmith" ];
meta = {
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 = lib.licenses.mpl20;
maintainers = [ ];
};
}