ansible_2_1, ansible_2_2: use overridePythonAttrs

This commit is contained in:
Frederik Rietdijk 2017-09-02 11:37:27 +02:00
parent 0c4c819b4d
commit 72cc6ba17f
2 changed files with 8 additions and 11 deletions

View File

@ -7,16 +7,14 @@
with pythonPackages; with pythonPackages;
let let
jinja = jinja2.overrideDerivation (old: rec { jinja = jinja2.overridePythonAttrs (old: rec {
pname = "Jinja2";
version = "2.8.1"; version = "2.8.1";
name = "${pname}-${version}"; name = "${old.pname}-${version}";
src = fetchurl { src = old.src.override {
url = "mirror://pypi/J/Jinja2/${name}.tar.gz"; inherit version;
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891"; sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
}; };
}); });
in buildPythonPackage rec { in buildPythonPackage rec {
pname = "ansible"; pname = "ansible";
version = "2.1.4.0"; version = "2.1.4.0";

View File

@ -9,12 +9,11 @@ with pythonPackages;
let let
# Shouldn't be needed anymore in next version # Shouldn't be needed anymore in next version
# https://github.com/NixOS/nixpkgs/pull/22345#commitcomment-20718521 # https://github.com/NixOS/nixpkgs/pull/22345#commitcomment-20718521
jinja = jinja2.overrideDerivation (old: rec { jinja = jinja2.overridePythonAttrs (old: rec {
pname = "Jinja2";
version = "2.8.1"; version = "2.8.1";
name = "${pname}-${version}"; name = "${old.pname}-${version}";
src = fetchurl { src = old.src.override {
url = "mirror://pypi/J/Jinja2/${name}.tar.gz"; inherit version;
sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891"; sha256 = "35341f3a97b46327b3ef1eb624aadea87a535b8f50863036e085e7c426ac5891";
}; };
}); });