70 lines
1.6 KiB
Nix
70 lines
1.6 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;
|
|
macOver = file: og:
|
|
if super.stdenv.isDarwin then
|
|
(super.callPackage file {}) else
|
|
super."${og}";
|
|
|
|
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 ];
|
|
});
|
|
|
|
bitwarden = macOver ./mac/bitwarden.nix "bitwarden";
|
|
gnucash = macOver ./mac/gnucash.nix "gnucash";
|
|
}
|