Skip to content
Snippets Groups Projects
Commit 762f053f authored by Tom Prince's avatar Tom Prince
Browse files

Address review comments.

parent 4c2d8001
No related branches found
No related tags found
1 merge request!239Switch to using mach-nix for python packaging.
...@@ -56,7 +56,7 @@ in ...@@ -56,7 +56,7 @@ in
}; };
zkapauthorizer = mach-nix.buildPythonApplication rec { zkapauthorizer = mach-nix.buildPythonApplication rec {
inherit python providers; inherit python providers;
src = ./.; src = lib.cleanSource ./.;
# mach-nix does not provide a way to specify dependencies on other # mach-nix does not provide a way to specify dependencies on other
# mach-nix packages, that incorporates the requirements and overlays # mach-nix packages, that incorporates the requirements and overlays
# of that package. # of that package.
...@@ -81,6 +81,10 @@ in ...@@ -81,6 +81,10 @@ in
packagesExtra = [ zkapauthorizer tahoe-lafs ]; packagesExtra = [ zkapauthorizer tahoe-lafs ];
}; };
in in
# Since we use this derivation in `environment.systemPackages`,
# we create a derivation that has just the executables we use,
# to avoid polluting the system PATH with all the executables
# from our dependencies.
pkgs.runCommandNoCC "privatestorage" {} pkgs.runCommandNoCC "privatestorage" {}
'' ''
mkdir -p $out/bin mkdir -p $out/bin
......
# Generally describe the project # Generally describe the project
[metadata] [metadata]
# See https://packaging.python.org/guides/distributing-packages-using-setuptools/#name
# for requiremnts of a valid project name.
name = zero-knowledge-access-pass-authorizer name = zero-knowledge-access-pass-authorizer
version = attr: _zkapauthorizer.__version__ version = attr: _zkapauthorizer.__version__
description = A `Tahoe-LAFS`_ storage-system plugin which authorizes storage operations based on privacy-respecting tokens. description = A `Tahoe-LAFS`_ storage-system plugin which authorizes storage operations based on privacy-respecting tokens.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment