##// END OF EJS Templates
Added tag v4.17.4 for changeset e533ca02ccc2
Added tag v4.17.4 for changeset e533ca02ccc2

File last commit:

r531:5e3115e0 stable
r722:fb061021 stable
Show More
python-packages-overrides.nix
60 lines | 1.3 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: {
"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
];
});
# Avoid that base packages screw up the build process
inherit (basePythonPackages)
setuptools;
}