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

Update shell.nix.

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