2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
isPy27,
|
|
|
|
pytestCheckHook,
|
2021-07-14 22:03:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "gibberish-detector";
|
|
|
|
version = "0.1.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-07-14 22:03:04 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "domanchi";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1si0fkpnk9vjkwl31sq5jkyv3rz8a5f2nh3xq7591j9wv2b6dn0b";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-07-14 22:03:04 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "gibberish_detector" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to detect gibberish strings";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gibberish-detector";
|
2021-07-14 22:03:04 +00:00
|
|
|
homepage = "https://github.com/domanchi/gibberish-detector";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|