1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy27
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "gibberish-detector";
10 version = "0.1.1";
11 disabled = isPy27;
12
13 src = fetchFromGitHub {
14 owner = "domanchi";
15 repo = pname;
16 rev = "v${version}";
17 sha256 = "1si0fkpnk9vjkwl31sq5jkyv3rz8a5f2nh3xq7591j9wv2b6dn0b";
18 };
19
20 nativeCheckInputs = [
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [ "gibberish_detector" ];
25
26 meta = with lib; {
27 description = "Python module to detect gibberish strings";
28 homepage = "https://github.com/domanchi/gibberish-detector";
29 license = licenses.mit;
30 maintainers = with maintainers; [ fab ];
31 };
32}