2023-01-08 20:07:20 +02:00
|
|
|
{ inputs, ... }:
|
2022-12-18 16:52:49 +02:00
|
|
|
|
|
|
|
{
|
2023-01-08 20:07:20 +02:00
|
|
|
perSystem = { config, drv-backends, lib, pkgs, ... }: let
|
|
|
|
deps = with config.dependencySets.python3Packages; [
|
|
|
|
poetry-core
|
|
|
|
requests-unixsocket
|
|
|
|
py-multibase
|
|
|
|
py-multiaddr
|
2022-12-18 16:52:49 +02:00
|
|
|
];
|
|
|
|
|
2023-01-08 20:07:20 +02:00
|
|
|
pythonForDev = pkgs.python3.withPackages (lib.const deps);
|
|
|
|
in
|
|
|
|
{
|
|
|
|
projectShells.reflex-cache = {
|
|
|
|
tools = [
|
|
|
|
pythonForDev
|
2022-12-18 16:52:49 +02:00
|
|
|
];
|
2023-01-08 20:07:20 +02:00
|
|
|
env.PYTHON = pythonForDev.interpreter;
|
|
|
|
commands.reflex.command = "${pythonForDev.interpreter} -m reflex_cache.main";
|
|
|
|
};
|
|
|
|
drvs.reflex-cache = { dependencySets, ... }: {
|
|
|
|
imports = [
|
|
|
|
drv-backends.buildPythonPackage
|
|
|
|
];
|
|
|
|
pyprojectToml = ./pyproject.toml;
|
|
|
|
inherit (pkgs) stdenv;
|
|
|
|
|
|
|
|
propagatedBuildInputs = deps;
|
|
|
|
|
|
|
|
src = with inputs.nix-filter.lib; filter {
|
|
|
|
root = ./.;
|
|
|
|
include = [
|
|
|
|
"pyproject.toml"
|
|
|
|
(inDirectory "reflex_cache")
|
|
|
|
];
|
|
|
|
};
|
2022-12-18 16:52:49 +02:00
|
|
|
};
|
|
|
|
};
|
2023-01-08 20:07:20 +02:00
|
|
|
}
|