From de34c5922c07d213f6027713a64b363251b839e9 Mon Sep 17 00:00:00 2001 From: Winter Hille Date: Mon, 19 May 2025 11:10:10 -0700 Subject: [PATCH] added requirements.txt and nix flake --- flake.lock | 27 +++++++++++++++++++++++++++ flake.nix | 36 ++++++++++++++++++++++++++++++++++++ requirements.txt | 3 +++ 3 files changed, 66 insertions(+) create mode 100644 flake.lock create mode 100644 flake.nix create mode 100644 requirements.txt diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..4eae39b --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..2b11c54 --- /dev/null +++ b/flake.nix @@ -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 + ]; + }; + }; +} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..31bb13c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +hy>=1 +bleach>=6.2.0 +validators>=0.34.0