Files
nixpkgs/pkgs/development/python-modules/targ/default.nix
Fabian Affolter b68ec0c4bf python313Packages.targ: init at 0.6.0
Python CLI using type hints and docstrings

https://github.com/piccolo-orm/targ/
2025-09-07 00:16:48 +02:00

42 lines
841 B
Nix

{
lib,
buildPythonPackage,
colorama,
docstring-parser,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "targ";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "piccolo-orm";
repo = "targ";
tag = version;
hash = "sha256-myQe8Gpnx5CqKnYNK0PZ2P7o+eVWKLInjyTaZd30WxU=";
};
build-system = [ setuptools ];
dependencies = [
colorama
docstring-parser
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "targ" ];
meta = {
description = "Python CLI using type hints and docstrings";
homepage = "https://github.com/piccolo-orm/targ/";
changelog = "https://github.com/piccolo-orm/targ/blob/${src.tag}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}