1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 click, 7 rich, 8}: 9 10buildPythonPackage rec { 11 pname = "name-that-hash"; 12 version = "1.11.0"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "HashPals"; 17 repo = "name-that-hash"; 18 rev = version; 19 hash = "sha256-zOb4BS3zG1x8GLXAooqqvMOw0fNbw35JuRWOdGP26/8="; 20 }; 21 22 # TODO remove on next update which bumps rich 23 postPatch = '' 24 substituteInPlace pyproject.toml --replace 'rich = ">=9.9,<11.0"' 'rich = ">=9.9"' 25 ''; 26 27 nativeBuildInputs = [ poetry-core ]; 28 29 propagatedBuildInputs = [ 30 click 31 rich 32 ]; 33 34 pythonImportsCheck = [ "name_that_hash" ]; 35 36 meta = with lib; { 37 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."; 38 description = "Module and CLI for the identification of hashes"; 39 homepage = "https://github.com/HashPals/Name-That-Hash"; 40 license = with licenses; [ gpl3Plus ]; 41 maintainers = with maintainers; [ eyjhb ]; 42 }; 43}