mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
ansible_2_1, ansible_2_2: use overridePythonAttrs
This commit is contained in:
parent
0c4c819b4d
commit
72cc6ba17f
@ -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";
|
||||||
|
@ -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";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user