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

Update shell.nix.

parent d85afc56
Branches
No related tags found
1 merge request!239Switch to using mach-nix for python packaging.
{ pkgs ? import ./nixpkgs.nix { } }:
let let
zkapauthorizer = pkgs.callPackage ./default.nix { }; sources = import nix/sources.nix;
in in
(pkgs.python27.buildEnv.override { { pkgs ? import sources.release2015 {} }:
extraLibs = with pkgs.python27Packages; [ let
fixtures tests = pkgs.callPackage ./tests.nix {};
testtools in
hypothesis pkgs.mkShell {
pyhamcrest packages = [
zkapauthorizer tests.python
]; pkgs.niv
ignoreCollisions = true; ];
}).env }
...@@ -27,7 +27,11 @@ in ...@@ -27,7 +27,11 @@ in
_.hypothesis.postUnpack = ""; _.hypothesis.postUnpack = "";
}; };
in in
pkgs.runCommand "zkapauthorizer-tests" {} '' pkgs.runCommand "zkapauthorizer-tests" {
passthru = {
inherit python;
};
} ''
mkdir -p $out mkdir -p $out
pushd ${zkapauthorizer.src} pushd ${zkapauthorizer.src}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment