python2.pkgs: move expressions into python2-modules/ folder

Another step in further separating python2 from python3.
This commit is contained in:
Frederik Rietdijk
2022-01-16 07:34:26 +01:00
committed by Frederik Rietdijk
parent 2027fb600d
commit ae18d68b6b
82 changed files with 251 additions and 96 deletions

View File

@@ -1,39 +0,0 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, mock
, pycrypto
, requests
, pytest-runner
, pytest
, requests-mock
, typing
, backports_ssl_match_hostname
}:
buildPythonPackage rec {
pname = "apache-libcloud";
version = "2.8.3";
src = fetchPypi {
inherit pname version;
sha256 = "70096690b24a7832cc5abdfda1954b49fddc1c09a348a1e6caa781ac867ed4c6";
};
checkInputs = [ mock pytest pytest-runner requests-mock ];
propagatedBuildInputs = [ pycrypto requests ]
++ lib.optionals isPy27 [ typing backports_ssl_match_hostname ];
preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py";
# requires a certificates file
doCheck = false;
meta = with lib; {
description = "A unified interface to many cloud providers";
homepage = "https://libcloud.apache.org/";
license = licenses.asl20;
};
}