at master 833 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 mac-alias, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "ds-store"; 13 version = "1.3.1"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "al45tair"; 20 repo = "ds_store"; 21 tag = "v${version}"; 22 hash = "sha256-45lmkE61uXVCBUMyVVzowTJoALY1m9JI68s7Yb0vCks="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ mac-alias ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "ds_store" ]; 32 33 meta = with lib; { 34 homepage = "https://github.com/al45tair/ds_store"; 35 description = "Manipulate Finder .DS_Store files from Python"; 36 mainProgram = "ds_store"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ prusnak ]; 39 }; 40}