git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.ansible_2_1: init at 2.1.4.0
commitc42cfa1e91bf271913aaa055ab34b2416df5b2f8 authorFrederik Rietdijk <fridh@fridh.nl> dateFri 27 Jan 2017, 09:59 (10 years ago) parent46b1ea2
2 files changed+51
pkgs/development/python-modules/ansible/2.1.nix+50 pkgs/top-level/python-packages.nix+1
pkgs/development/python-modules/ansible/2.1.nixnew file+50
@@ -0,0 +1,50 @@
1+{ lib
2+, fetchurl
3+, buildPythonPackage
4+, pycrypto
5+, paramiko
6+, jinja2
7+, pyyaml
8+, httplib2
9+, boto
10+, six
11+, netaddr
12+, dns
13+, pywinrm
14+}:
15+
16+buildPythonPackage rec {
17+ pname = "ansible";
18+ version = "2.1.4.0";
19+ name = "${pname}-${version}";
20+
21+
22+ src = fetchurl {
23+ url = "http://releases.ansible.com/ansible/${name}.tar.gz";
24+ sha256 = "05nc68900qrzqp88970j2lmyvclgrjki66xavcpzyzamaqrh7wg9";
25+ };
26+
27+ prePatch = ''
28+ sed -i "s,/usr/,$out," lib/ansible/constants.py
29+ '';
30+
31+ doCheck = false;
32+ dontStrip = true;
33+ dontPatchELF = true;
34+ dontPatchShebangs = false;
35+ windowsSupport = true;
36+
37+ propagatedBuildInputs = [ pycrypto paramiko jinja2 pyyaml httplib2
38+ boto six netaddr dns ] ++ lib.optional windowsSupport pywinrm;
39+
40+ meta = {
41+ homepage = "http://www.ansible.com";
42+ description = "A simple automation tool";
43+ license = with lib.licenses; [ gpl3] ;
44+ maintainers = with lib.maintainers; [
45+ jgeerds
46+ joamaki
47+ ];
48+ platforms = with lib.platforms; linux ++ darwin;
49+ };
50+}
pkgs/top-level/python-packages.nix+1
@@ -926,6 +926,7 @@ in {
926926 ansible = self.ansible2;
927927 ansible2 = self.ansible_2_2;
928928
929+ ansible_2_1 = callPackage ../development/python-modules/ansible/2.1.nix {};
929930 ansible_2_2 = callPackage ../development/python-modules/ansible/2.2.nix {};
930931
931932 apipkg = buildPythonPackage rec {