Files
nix-dotfiles/python.nix
Patrick Stevens f4678f910f General faff (#9)
2022-08-20 21:45:49 +01:00

15 lines
443 B
Nix

{pkgs}: let
my-python-packages = python-packages:
with python-packages; [
pip
mathlibtools
];
in let
packageOverrides = self: super: {
# Test failures on darwin ("windows-1252"); just skip pytest
# (required for elan)
beautifulsoup4 = super.beautifulsoup4.overridePythonAttrs (old: {pytestCheckPhase = "true";});
};
in
(pkgs.python3.override {inherit packageOverrides;}).withPackages my-python-packages