depot/pkgs/by-name/do/docify/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

41 lines
908 B
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "docify";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "AThePeanut4";
repo = "docify";
rev = "refs/tags/v${version}";
hash = "sha256-pt35Kw0kaZsIGTutXPhjdp8czGtWrSUFWMV3NyFQ/NM=";
};
build-system = with python3Packages; [
pdm-backend
];
dependencies = with python3Packages; [
libcst
tqdm
];
pythonImportsCheck = [ "docify" ];
# upstream has no tests
doCheck = false;
meta = {
changelog = "https://github.com/AThePeanut4/docify/releases/tag/v${version}";
description = "Script to add docstrings to Python type stubs using reflection";
homepage = "https://github.com/AThePeanut4/docify";
license = lib.licenses.mit;
mainProgram = "docify";
maintainers = with lib.maintainers; [ dotlambda ];
};
}