about summary refs log tree commit diff
path: root/pkgs/development/python-modules/hsh/default.nix
blob: f7efbc14e8aec2c92a4e973605320a84a45ed8b7 (plain) (blame)
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 = 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 ];
  };
}