* Reverted most of the recent Python refactorings, as discussed. It's
a worthy goal to move the Python packages that are currently in all-packages.nix into a single attribute set, but this doesn't require moving python-packages.nix or the other changes made to that file. The Python packages in all-packages.nix should simply be moved to python-packages.nix, and ideally changed to use buildPythonPackage. svn path=/nixpkgs/trunk/; revision=21196
This commit is contained in:
26
pkgs/development/python-modules/pyopenssl/default.nix
Normal file
26
pkgs/development/python-modules/pyopenssl/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
a :
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
|
||||
version = a.lib.attrByPath ["version"] "0.8" a;
|
||||
propagatedBuildInputs = with a; [
|
||||
openssl python
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = "http://prdownloads.sourceforge.net/sourceforge/pyopenssl/pyOpenSSL-${version}.tar.gz";
|
||||
sha256 = "1qzzycjyp1qsw87msj9kg2q3h7il1bf4jkrwy841y0zi44fl3112";
|
||||
};
|
||||
|
||||
inherit propagatedBuildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["installPythonPackage"];
|
||||
|
||||
name = "pyOpenSSL-" + version;
|
||||
meta = {
|
||||
description = "Python OpenSSL wrapper capable of checking certificates";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user