Move xonsh header/footer to separate files Add gregpy as the default Python version used in xonsh Add Nix profile to PATH in xonsh ahead of tmux path mangling to allow python3 with modules to be discovered
64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
self: super:
|
|
|
|
let
|
|
cp = super.python3.pkgs.callPackage;
|
|
|
|
myPackages = pypackages: with pypackages; with pkgs.my-py-addons; [
|
|
black
|
|
copier
|
|
datadog
|
|
datadog-api-client
|
|
dateutil
|
|
flake8
|
|
ipython
|
|
pyyaml
|
|
responses
|
|
ruamel-yaml
|
|
tox
|
|
typing-extensions
|
|
virtualenv
|
|
xonsh-direnv
|
|
];
|
|
|
|
myPython = super.python3.withPackages myPackages;
|
|
|
|
in rec {
|
|
gregpy = myPython;
|
|
|
|
my-py-addons = rec {
|
|
copier = cp ./copier.nix {
|
|
inherit iteration-utilities
|
|
jinja2-ansible-filters
|
|
pydantic
|
|
pyyaml-include
|
|
;
|
|
};
|
|
datadog-api-client = cp ./datadog-api-client.nix {};
|
|
iteration-utilities = cp ./iteration-utilities.nix {};
|
|
jinja2-ansible-filters = cp ./jinja2-ansible-filters.nix {};
|
|
molecule = cp ./molecule.nix {};
|
|
molecule-containers = cp ./molecule-containers.nix {
|
|
inherit molecule molecule-docker molecule-podman;
|
|
};
|
|
molecule-docker = cp ./molecule-docker.nix {
|
|
inherit molecule;
|
|
};
|
|
molecule-podman = cp ./molecule-podman.nix {
|
|
inherit molecule;
|
|
};
|
|
pydantic = cp ./pydantic.nix {};
|
|
pyyaml-include = cp ./pyyaml-include.nix {};
|
|
xonsh-direnv = cp ./xonsh-direnv.nix {};
|
|
};
|
|
|
|
hms = super.callPackage ./hms.nix {
|
|
pkgs = self.pkgs;
|
|
};
|
|
|
|
xonsh = super.xonsh.overridePythonAttrs (old: rec{
|
|
python3 = self.gregpy;
|
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [ my-py-addons.xonsh-direnv ];
|
|
});
|
|
|
|
}
|