diff --git a/cli/requirements.txt b/cli/requirements.txt deleted file mode 100644 index 8c73512..0000000 --- a/cli/requirements.txt +++ /dev/null @@ -1,2 +0,0 @@ -tqdm -websockets diff --git a/cli/setup.py b/cli/setup.py new file mode 100644 index 0000000..fe50274 --- /dev/null +++ b/cli/setup.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python + +from setuptools import setup + +setup(name='transbeam-cli', + version='0.1', + scripts=['transbeam-cli'], + install_requires=[ + 'tqdm', + 'websockets', + ], +) diff --git a/cli/transbeam.py b/cli/transbeam-cli similarity index 100% rename from cli/transbeam.py rename to cli/transbeam-cli diff --git a/flake.nix b/flake.nix index d76fe2d..ece7d09 100644 --- a/flake.nix +++ b/flake.nix @@ -50,6 +50,16 @@ packages."${name}-unwrapped" = project.rootCrate.build; + packages."${name}-cli" = with pkgs.python3Packages; buildPythonApplication { + pname = "${name}-cli"; + version = "0.1"; + propagatedBuildInputs = [ + tqdm + websockets + ]; + src = ./cli; + }; + devShell = pkgs.mkShell { nativeBuildInputs = with pkgs; [ stdenv.cc @@ -57,6 +67,10 @@ cargo cargo-audit cargo-flamegraph + (python3.withPackages (p: with p; [ + tqdm + websockets + ])) ]; RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}"; };