summary refs log tree commit diff
path: root/pkgs/development/python-modules/checksumdir/default.nix
blob: 7492d168d8d92e309d316eb1aa011756cdba389d (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pythonOlder
}:

buildPythonPackage rec {
  pname = "checksumdir";
  version = "1.2.0";
  pyproject = true;

  disable = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "to-mc";
    repo = "checksumdir";
    rev = version;
    hash = "sha256-PO8sRGFQ1Dt/UYJuFH6Y3EaQVaS+4DJlOQtvF8ZmBWQ=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  doCheck = false; # Package does not contain tests
  pythonImportsCheck = [ "checksumdir" ];

  meta = with lib; {
    description = "Simple package to compute a single deterministic hash of the file contents of a directory";
    homepage = "https://github.com/to-mc/checksumdir";
    license = licenses.mit;
    maintainers = with maintainers; [ mbalatsko ];
  };
}