2020-10-09 15:18:34 +00:00
|
|
|
{
|
|
|
|
pkgs ? import (import ./mach_nix/nix/nixpkgs-src.nix) { config = {}; },
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with pkgs;
|
2020-10-07 15:56:33 +00:00
|
|
|
let
|
2021-05-23 06:05:16 +00:00
|
|
|
python = python38;
|
2020-10-07 15:56:33 +00:00
|
|
|
machnixDeps = (lib.attrValues (import ./mach_nix/nix/python-deps.nix { inherit python; fetchurl = fetchurl; }));
|
|
|
|
in
|
2020-04-22 09:28:58 +00:00
|
|
|
mkShell {
|
|
|
|
buildInputs = [
|
2020-10-07 15:56:33 +00:00
|
|
|
(python.withPackages ( ps: with ps; machnixDeps ++ [ pytest_6 twine ] ))
|
2020-10-08 07:10:31 +00:00
|
|
|
nix-prefetch-git
|
2020-04-22 09:28:58 +00:00
|
|
|
];
|
|
|
|
shellHook = ''
|
|
|
|
export PYTHONPATH=$(pwd)/
|
2021-03-12 05:31:06 +00:00
|
|
|
git config core.hooksPath ./git-hooks
|
2020-04-22 09:28:58 +00:00
|
|
|
'';
|
2020-04-22 12:10:04 +00:00
|
|
|
}
|