python-packages-overrides.nix
60 lines
| 1.3 KiB
| text/x-nix
|
NixLexer
/ pkgs / python-packages-overrides.nix
r0 | # Overrides for the generated python-packages.nix | |||
# | ||||
# This function is intended to be used as an extension to the generated file | ||||
# python-packages.nix. The main objective is to add needed dependencies of C | ||||
# libraries and tweak the build instructions where needed. | ||||
r472 | { pkgs | |||
, basePythonPackages | ||||
}: | ||||
r0 | ||||
let | ||||
sed = "sed -i"; | ||||
r472 | ||||
r0 | in | |||
self: super: { | ||||
r473 | "gevent" = super."gevent".override (attrs: { | |||
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | ||||
# NOTE: (marcink) odd requirements from gevent aren't set properly, | ||||
# thus we need to inject psutil manually | ||||
self."psutil" | ||||
]; | ||||
}); | ||||
r472 | "hgsubversion" = super."hgsubversion".override (attrs: { | |||
r0 | propagatedBuildInputs = attrs.propagatedBuildInputs ++ [ | |||
r472 | pkgs.sqlite | |||
#basePythonPackages.sqlite3 | ||||
self.mercurial | ||||
]; | ||||
}); | ||||
"subvertpy" = super."subvertpy".override (attrs: { | ||||
SVN_PREFIX = "${pkgs.subversion.dev}"; | ||||
propagatedBuildInputs = [ | ||||
pkgs.apr.dev | ||||
r0 | pkgs.aprutil | |||
pkgs.subversion | ||||
]; | ||||
}); | ||||
r472 | "mercurial" = super."mercurial".override (attrs: { | |||
propagatedBuildInputs = [ | ||||
# self.python.modules.curses | ||||
r320 | ]; | |||
}); | ||||
r531 | "dulwich" = super."dulwich".override (attrs: { | |||
patches = [ | ||||
./patches/dulwich/handle-dir-refs.patch | ||||
]; | ||||
}); | ||||
r472 | # Avoid that base packages screw up the build process | |||
inherit (basePythonPackages) | ||||
setuptools; | ||||
r0 | ||||
} | ||||