Skip to content

Commit 7f65c1f

Browse files
authored
add nanoid (#120)
* add nanoid * fix nanoid submission * fix nanoid max targets
1 parent 3f5fb2e commit 7f65c1f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

recipes/nanoid/image.jpg

19.1 KB
Loading

recipes/nanoid/recipe.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
context:
3+
version: "0.2.0"
4+
5+
package:
6+
name: "nanoid"
7+
version: ${{ version }}
8+
9+
source:
10+
- git: https://github.com/cirello-py/nanoid.git
11+
rev: 637a02ef7fcb627b43c0de2f2fe0fca8d0e5199b
12+
13+
build:
14+
number: 0
15+
script:
16+
- mojo package nanoid -o ${{ PREFIX }}/lib/mojo/nanoid.mojopkg
17+
18+
requirements:
19+
host:
20+
- max=25.3
21+
run:
22+
- ${{ pin_compatible('max') }}
23+
24+
tests:
25+
- script:
26+
- if: unix
27+
then:
28+
- mojo test
29+
30+
about:
31+
homepage: https://github.com/cirello-py/nanoid
32+
license: Apache-2.0
33+
license_file: LICENSE
34+
summary: A Mojo port of NanoID, a tiny, secure, URL-friendly, unique string ID generator.
35+
repository: https://github.com/cirello-py/nanoid
36+
37+
extra:
38+
maintainers:
39+
- ucirello

0 commit comments

Comments
 (0)