2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
commandlines,
|
|
|
|
unittestCheckHook,
|
|
|
|
pexpect,
|
|
|
|
naked,
|
|
|
|
setuptools,
|
|
|
|
wheel,
|
2024-04-21 15:54:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hsh";
|
|
|
|
version = "1.1.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chrissimpkins";
|
|
|
|
repo = "hsh";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-bAAytoidFHH2dSXqN9aqBd2H4p/rwTWXIZa1t5Djdz0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ commandlines ];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
wheel
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
unittestCheckHook
|
|
|
|
pexpect
|
|
|
|
naked
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
preCheck = "cd tests";
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "hsh" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-platform command line application that generates file hash digests and performs file integrity checks via file hash digest comparisons";
|
|
|
|
homepage = "https://github.com/chrissimpkins/hsh";
|
|
|
|
downloadPage = "https://github.com/chrissimpkins/hsh/releases";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.lucasew ];
|
|
|
|
};
|
|
|
|
}
|