initial commit
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s

This commit is contained in:
sid 2026-02-23 20:34:35 +01:00
commit 95a533c876
451 changed files with 18255 additions and 0 deletions

22
pkgs/pyman/default.nix Normal file
View file

@ -0,0 +1,22 @@
{
python3Packages,
...
}:
python3Packages.buildPythonApplication {
pname = "pyman";
version = "1.0.0";
src = ./.;
pyproject = true;
build-system = [ python3Packages.setuptools ];
propagatedBuildInputs = [ python3Packages.pyyaml ];
doCheck = false;
meta = {
description = "Display colors from a YAML color palette file in the terminal.";
};
}

26
pkgs/pyman/pyman Normal file
View file

@ -0,0 +1,26 @@
#!/usr/bin/env python3
import sys
import io
def main():
if len(sys.argv) != 2:
print(f"Usage: {sys.argv[0]} <topic>")
sys.exit(1)
topic = sys.argv[1]
# Capture the output of the help function
captured_output = io.StringIO()
sys.stdout = captured_output
try:
help(topic)
except Exception as e:
print(f"Error: {e}")
finally:
sys.stdout = sys.__stdout__
# Print the captured output
print(captured_output.getvalue())
if __name__ == "__main__":
main()

7
pkgs/pyman/setup.py Normal file
View file

@ -0,0 +1,7 @@
from setuptools import setup
setup(
name='pyman',
version='1.0.0',
scripts=['pyman'],
)