567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
777 B
Nix
35 lines
777 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "checksumdir";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "to-mc";
|
|
repo = "checksumdir";
|
|
tag = version;
|
|
hash = "sha256-rOHRJAK+Or8bwAtzpbINdnEjK3WQcU+4sEZI91tMvAk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
doCheck = false; # Package does not contain tests
|
|
pythonImportsCheck = [ "checksumdir" ];
|
|
|
|
meta = {
|
|
description = "Simple package to compute a single deterministic hash of the file contents of a directory";
|
|
homepage = "https://github.com/to-mc/checksumdir";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mbalatsko ];
|
|
};
|
|
}
|