Files
nixpkgs/pkgs/development/python-modules/gibberish-detector/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

34 lines
752 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "gibberish-detector";
version = "0.1.1";
format = "setuptools";
disabled = isPy27;
src = fetchFromGitHub {
owner = "domanchi";
repo = "gibberish-detector";
rev = "v${version}";
sha256 = "1si0fkpnk9vjkwl31sq5jkyv3rz8a5f2nh3xq7591j9wv2b6dn0b";
};
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "gibberish_detector" ];
meta = {
description = "Python module to detect gibberish strings";
mainProgram = "gibberish-detector";
homepage = "https://github.com/domanchi/gibberish-detector";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}