scripts/pkgs_wip/stashapp-tools.nix
2025-10-04 17:26:10 -06:00

48 lines
853 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
wheel,
requests,
}:
buildPythonPackage rec {
pname = "stashapp-tools";
version = "0.2.59";
pyproject = true;
src = fetchFromGitHub {
owner = "stg-annon";
repo = "stashapp-tools";
rev = "v${version}";
hash = "sha256-1IkFQrdfEAVldr6QHcPkYuKUutc4uvRPTpHyz0gp768=";
fetchSubmodules = true;
};
build-system = [
setuptools
wheel
];
postPatch = ''
substituteInPlace setup.py \
--replace 'version="main"' 'version="${version}"'
'';
dependencies = [
requests
];
pythonImportsCheck = [
"stashapi"
];
meta = {
description = "Tools to interface with stashapps API";
homepage = "https://github.com/stg-annon/stashapp-tools";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
};
}