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