2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
pythonOlder,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "checksumdir";
|
|
|
|
version = "1.2.0";
|
|
|
|
pyproject = true;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "to-mc";
|
|
|
|
repo = "checksumdir";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-PO8sRGFQ1Dt/UYJuFH6Y3EaQVaS+4DJlOQtvF8ZmBWQ=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|