1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "checksumdir";
10 version = "1.2.0";
11 pyproject = true;
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "to-mc";
17 repo = "checksumdir";
18 rev = version;
19 hash = "sha256-PO8sRGFQ1Dt/UYJuFH6Y3EaQVaS+4DJlOQtvF8ZmBWQ=";
20 };
21
22 nativeBuildInputs = [
23 setuptools
24 ];
25
26 doCheck = false; # Package does not contain tests
27 pythonImportsCheck = [ "checksumdir" ];
28
29 meta = with lib; {
30 description = "Simple package to compute a single deterministic hash of the file contents of a directory";
31 homepage = "https://github.com/to-mc/checksumdir";
32 license = licenses.mit;
33 maintainers = with maintainers; [ mbalatsko ];
34 };
35}