depot/third_party/nixpkgs/pkgs/development/python-modules/checksumdir/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

34 lines
779 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pythonOlder,
}:
buildPythonPackage rec {
pname = "checksumdir";
version = "1.2.0";
pyproject = true;
disabled = 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 ];
};
}