blob: d6ec8fd9f89c90c0bc7504460a428de340e483f8 (
plain)
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
35
36
37
38
39
40
41
42
43
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
click,
rich,
}:
buildPythonPackage rec {
pname = "name-that-hash";
version = "1.11.0";
pyproject = true;
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 ];
};
}
|