about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/gibberish-detector/default.nix
blob: b9d06fc34cceebdb63b2d179b91e53724d84d0e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "gibberish-detector";
  version = "0.1.1";
  format = "setuptools";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "domanchi";
    repo = pname;
    rev = "v${version}";
    sha256 = "1si0fkpnk9vjkwl31sq5jkyv3rz8a5f2nh3xq7591j9wv2b6dn0b";
  };

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "gibberish_detector" ];

  meta = with lib; {
    description = "Python module to detect gibberish strings";
    mainProgram = "gibberish-detector";
    homepage = "https://github.com/domanchi/gibberish-detector";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}