mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 18:44:07 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
51 lines
993 B
Nix
51 lines
993 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pytestCheckHook
|
|
, hypothesis
|
|
, levenshtein
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "thefuzz";
|
|
version = "0.19.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-b3Em2y8silQhKwXjp0DkX0KRxJfXXSB1Fyj2Nbt0qj0=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ levenshtein ];
|
|
|
|
# Skip linting
|
|
postPatch = ''
|
|
substituteInPlace test_thefuzz.py --replace "import pycodestyle" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"thefuzz"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# Skip linting
|
|
"test_pep8_conformance"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Fuzzy string matching for Python";
|
|
homepage = "https://github.com/seatgeek/thefuzz";
|
|
changelog = "https://github.com/seatgeek/thefuzz/blob/${version}/CHANGES.rst";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ sumnerevans ];
|
|
};
|
|
}
|