summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hsh/default.nix
blob: cdaf058abe3c0de675fa73e098d1792899e1c48c (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
44
45
46
47
48
49
{
  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 ];
  };
}