2023-06-08 00:53:19 -05:00
|
|
|
final: prev:
|
2022-10-15 00:19:38 -05:00
|
|
|
|
|
|
|
|
let
|
2024-10-11 12:28:53 -05:00
|
|
|
myPackages =
|
|
|
|
|
pypackages: with pypackages; [
|
|
|
|
|
black
|
|
|
|
|
dateutil
|
|
|
|
|
ipython
|
|
|
|
|
mypy
|
|
|
|
|
pylint
|
|
|
|
|
pyyaml
|
|
|
|
|
responses
|
|
|
|
|
ruamel-yaml
|
|
|
|
|
tox
|
|
|
|
|
typing-extensions
|
|
|
|
|
virtualenv
|
|
|
|
|
];
|
2022-11-01 08:35:06 -05:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
myPython = prev.python312.withPackages myPackages;
|
|
|
|
|
is2405 = prev.lib.versionAtLeast prev.lib.version "24";
|
2024-01-22 18:37:41 +00:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
in
|
|
|
|
|
rec {
|
|
|
|
|
gregpy = myPython;
|
2022-11-01 08:35:06 -05:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
## Testing adding python packages in the correct manner
|
|
|
|
|
pythonPackagesExtensions = (prev.pythonPackagesExtensions or [ ]) ++ [
|
2024-10-11 12:28:53 -05:00
|
|
|
(
|
|
|
|
|
python-final: _:
|
|
|
|
|
let
|
|
|
|
|
cp = python-final.callPackage;
|
|
|
|
|
in
|
|
|
|
|
{
|
2024-10-03 11:26:39 -05:00
|
|
|
django-rapyd-modernauth = cp ./django-rapyd-modernauth.nix { };
|
|
|
|
|
graypy = cp ./graypy.nix { };
|
|
|
|
|
itg-django-utils = cp ./itg-django-utils.nix { };
|
|
|
|
|
xonsh-apipenv = cp ./xonsh-apipenv.nix { };
|
2024-10-11 12:28:53 -05:00
|
|
|
}
|
|
|
|
|
)
|
2024-10-03 11:26:39 -05:00
|
|
|
];
|
2023-06-13 09:39:32 -05:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
# My own packages
|
|
|
|
|
enwiki-dump = prev.callPackage ./enwiki-dump.nix { };
|
2024-02-13 23:01:01 -06:00
|
|
|
|
2024-10-03 11:26:39 -05:00
|
|
|
# Overrides of packages
|
|
|
|
|
brew = prev.callPackage ./homebrew.nix { };
|
2024-10-11 12:28:53 -05:00
|
|
|
copier = (
|
|
|
|
|
if is2405 then
|
|
|
|
|
prev.copier.overridePythonAttrs (_: {
|
2024-10-03 11:26:39 -05:00
|
|
|
version = "9.1.0";
|
|
|
|
|
src = final.fetchFromGitHub {
|
|
|
|
|
owner = "copier-org";
|
|
|
|
|
repo = "copier";
|
|
|
|
|
rev = "v9.1.0";
|
|
|
|
|
hash = "sha256-x5r7Xv4lAOMkR+UIEeSY7LvbYMLpTWYuICYe9ygz1tA=";
|
|
|
|
|
postFetch = "rm $out/tests/demo/doc/ma*ana.txt";
|
|
|
|
|
};
|
2024-10-11 12:28:53 -05:00
|
|
|
})
|
|
|
|
|
else
|
|
|
|
|
prev.copier
|
|
|
|
|
);
|
2024-10-03 11:26:39 -05:00
|
|
|
libbluray-custom = prev.libbluray.override {
|
|
|
|
|
withAACS = true;
|
|
|
|
|
withBDplus = true;
|
|
|
|
|
};
|
|
|
|
|
template = prev.callPackage ./template.nix { };
|
2024-10-11 12:28:53 -05:00
|
|
|
handbrake = prev.handbrake.override { libbluray = libbluray-custom; };
|
2024-10-03 11:26:39 -05:00
|
|
|
libvirt-greg = prev.libvirt.overrideAttrs {
|
|
|
|
|
postInstall = prev.libvirt.postInstall + "rm -r $out/lib/systemd/system/libvirtd.service";
|
|
|
|
|
};
|
|
|
|
|
pipenv-ivr = prev.callPackage ./pipenv.nix { };
|
2022-05-04 13:52:38 -05:00
|
|
|
}
|