added requirements.txt and nix flake

This commit is contained in:
2025-05-19 11:10:10 -07:00
parent f7e4903bd6
commit de34c5922c
3 changed files with 66 additions and 0 deletions

27
flake.lock generated Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1747542820,
"narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

36
flake.nix Normal file
View File

@ -0,0 +1,36 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in
with pkgs;
{
devShells.x86_64-linux.default = mkShell {
buildInputs = with python3Packages; [
hy
(buildPythonPackage rec {
pname = "hyrule";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-SZyFjXNs6thVWhKbajYelY0DoRYqrcCQcdKMNC5t6Og=";
};
propagatedBuildInputs = [
pip
wheel
hy
];
})
bleach
validators
];
};
};
}

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
hy>=1
bleach>=6.2.0
validators>=0.34.0