2021-01-15 22:18:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-01-13 08:15:51 +00:00
|
|
|
, mac-alias
|
2021-01-15 22:18:51 +00:00
|
|
|
, pytestCheckHook
|
2023-04-29 16:46:19 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2021-01-15 22:18:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-04-29 16:46:19 +00:00
|
|
|
pname = "ds-store";
|
|
|
|
version = "1.3.1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "al45tair";
|
2023-04-29 16:46:19 +00:00
|
|
|
repo = "ds_store";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-45lmkE61uXVCBUMyVVzowTJoALY1m9JI68s7Yb0vCks=";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-01-13 08:15:51 +00:00
|
|
|
mac-alias
|
2023-04-29 16:46:19 +00:00
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ds_store"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/al45tair/ds_store";
|
|
|
|
description = "Manipulate Finder .DS_Store files from Python";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ds_store";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ prusnak ];
|
|
|
|
};
|
|
|
|
}
|