Files
nixpkgs/pkgs/development/python-modules/hsh/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

50 lines
1005 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
commandlines,
unittestCheckHook,
pexpect,
naked,
setuptools,
wheel,
}:
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 ];
nativeBuildInputs = [
setuptools
wheel
];
nativeCheckInputs = [
unittestCheckHook
pexpect
naked
];
preCheck = "cd tests";
pythonImportsCheck = [ "hsh" ];
meta = {
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 = lib.licenses.mit;
maintainers = [ lib.maintainers.lucasew ];
};
}