Files
nixpkgs/pkgs/development/python-modules/name-that-hash/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

44 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
click,
rich,
}:
buildPythonPackage rec {
pname = "name-that-hash";
version = "1.11.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "HashPals";
repo = "name-that-hash";
rev = version;
hash = "sha256-zOb4BS3zG1x8GLXAooqqvMOw0fNbw35JuRWOdGP26/8=";
};
# TODO remove on next update which bumps rich
postPatch = ''
substituteInPlace pyproject.toml --replace 'rich = ">=9.9,<11.0"' 'rich = ">=9.9"'
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
click
rich
];
pythonImportsCheck = [ "name_that_hash" ];
meta = {
longDescription = "Don't know what type of hash it is? Name That Hash will name that hash type! Identify MD5, SHA256 and 300+ other hashes.";
description = "Module and CLI for the identification of hashes";
homepage = "https://github.com/HashPals/Name-That-Hash";
license = with lib.licenses; [ gpl3Plus ];
maintainers = with lib.maintainers; [ eyjhb ];
};
}