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>
41 lines
831 B
Nix
41 lines
831 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mac-alias,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ds-store";
|
|
version = "1.3.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "al45tair";
|
|
repo = "ds_store";
|
|
tag = "v${version}";
|
|
hash = "sha256-45lmkE61uXVCBUMyVVzowTJoALY1m9JI68s7Yb0vCks=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ mac-alias ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "ds_store" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/al45tair/ds_store";
|
|
description = "Manipulate Finder .DS_Store files from Python";
|
|
mainProgram = "ds_store";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ prusnak ];
|
|
};
|
|
}
|