1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
black,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
hypothesis,
|
|
lark,
|
|
libcst,
|
|
parso,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
pytest-xdist,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hypothesmith";
|
|
version = "0.3.3";
|
|
pyproject = true;
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|