diff --git a/pkgs/by-name/fa/famly-fetch/package.nix b/pkgs/by-name/fa/famly-fetch/package.nix new file mode 100644 index 000000000000..092e980d865f --- /dev/null +++ b/pkgs/by-name/fa/famly-fetch/package.nix @@ -0,0 +1,43 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + versionCheckHook, +}: + +python3Packages.buildPythonApplication rec { + pname = "famly-fetch"; + version = "0.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "jacobbunk"; + repo = "famly-fetch"; + tag = "v${version}"; + hash = "sha256-Ua2g+YGzMHfMGZrOSKzeqdT/ppanZZWJHjrRxfwVDmE="; + }; + + build-system = with python3Packages; [ + setuptools + ]; + + dependencies = with python3Packages; [ + click + importlib-resources + piexif + ]; + + pythonImportsCheck = [ "famly_fetch" ]; + + # No tests in the repository + doCheck = false; + nativeInstallCheckInputs = [ versionCheckHook ]; + + meta = { + description = "Fetch your (kid's) images from famly.co"; + homepage = "https://github.com/jacobbunk/famly-fetch"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ tlvince ]; + mainProgram = "famly-fetch"; + }; +}