##// END OF EJS Templates
release: merge back stable branch into default
release: merge back stable branch into default

File last commit:

r723:ae6fe219 default
r869:8bb561d8 merge default
Show More
python-packages-overrides.nix
72 lines | 1.6 KiB | text/x-nix | NixLexer
/ pkgs / python-packages-overrides.nix
# 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.
{ pkgs
, basePythonPackages
}:
let
sed = "sed -i";
in
self: super: {
"cffi" = super."cffi".override (attrs: {
buildInputs = [
pkgs.libffi
];
});
"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"
];
});
"hgsubversion" = super."hgsubversion".override (attrs: {
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
pkgs.sqlite
#basePythonPackages.sqlite3
self.mercurial
];
});
"subvertpy" = super."subvertpy".override (attrs: {
SVN_PREFIX = "${pkgs.subversion.dev}";
propagatedBuildInputs = [
pkgs.apr.dev
pkgs.aprutil
pkgs.subversion
];
});
"mercurial" = super."mercurial".override (attrs: {
propagatedBuildInputs = [
# self.python.modules.curses
];
});
"dulwich" = super."dulwich".override (attrs: {
patches = [
./patches/dulwich/handle-dir-refs.patch
];
});
"pygit2" = super."pygit2".override (attrs: {
propagatedBuildInputs = attrs.propagatedBuildInputs ++ [
pkgs.libffi
pkgs.libgit2rc
];
});
# Avoid that base packages screw up the build process
inherit (basePythonPackages)
setuptools;
}