ansible_2_1, ansible_2_2: use overridePythonAttrs
This commit is contained in:
parent
0c4c819b4d
commit
72cc6ba17f
2 changed files with 8 additions and 11 deletions
|
@ -7,16 +7,14 @@
|
|||
with pythonPackages;
|
||||
|
||||
let
|
||||
jinja = jinja2.overrideDerivation (old: rec {
|
||||
pname = "Jinja2";
|
||||
jinja = jinja2.overridePythonAttrs (old: rec {
|
||||
version = "2.8.1";
|
||||
name = "${pname}-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/J/Jinja2/${name}.tar.gz";
|
||||
name = "${old.pname}-${version}";
|
||||
src = old.src.override {
|
||||
inherit version;
|
||||
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
|
||||
};
|
||||
});
|
||||
|
||||
in buildPythonPackage rec {
|
||||
pname = "ansible";
|
||||
version = "2.1.4.0";
|
||||
|
|
|
@ -9,12 +9,11 @@ with pythonPackages;
|
|||
let
|
||||
# Shouldn't be needed anymore in next version
|
||||
# https://github.com/NixOS/nixpkgs/pull/22345#commitcomment-20718521
|
||||
jinja = jinja2.overrideDerivation (old: rec {
|
||||
pname = "Jinja2";
|
||||
jinja = jinja2.overridePythonAttrs (old: rec {
|
||||
version = "2.8.1";
|
||||
name = "${pname}-${version}";
|
||||
src = fetchurl {
|
||||
url = "mirror://pypi/J/Jinja2/${name}.tar.gz";
|
||||
name = "${old.pname}-${version}";
|
||||
src = old.src.override {
|
||||
inherit version;
|
||||
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue