1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 lib,
5 commandlines,
6 unittestCheckHook,
7 pexpect,
8 naked,
9 setuptools,
10 wheel,
11}:
12
13buildPythonPackage rec {
14 pname = "hsh";
15 version = "1.1.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "chrissimpkins";
20 repo = "hsh";
21 rev = "v${version}";
22 hash = "sha256-bAAytoidFHH2dSXqN9aqBd2H4p/rwTWXIZa1t5Djdz0=";
23 };
24
25 propagatedBuildInputs = [ commandlines ];
26
27 nativeBuildInputs = [
28 setuptools
29 wheel
30 ];
31
32 nativeCheckInputs = [
33 unittestCheckHook
34 pexpect
35 naked
36 ];
37
38 preCheck = "cd tests";
39
40 pythonImportsCheck = [ "hsh" ];
41
42 meta = with lib; {
43 description = "Cross-platform command line application that generates file hash digests and performs file integrity checks via file hash digest comparisons";
44 homepage = "https://github.com/chrissimpkins/hsh";
45 downloadPage = "https://github.com/chrissimpkins/hsh/releases";
46 license = licenses.mit;
47 maintainers = [ maintainers.lucasew ];
48 };
49}