mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
27 lines
669 B
Nix
27 lines
669 B
Nix
{ stdenv, buildPythonPackage, fetchurl, isPy3k }:
|
|
buildPythonPackage rec {
|
|
pname = "xmpp.py";
|
|
version = "0.5.0rc1";
|
|
|
|
patches = [ ./ssl.patch ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/xmpppy/xmpppy-${version}.tar.gz";
|
|
sha256 = "16hbh8kwc5n4qw2rz1mrs8q17rh1zq9cdl05b1nc404n7idh56si";
|
|
};
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/bin $out/lib $out/share $(toPythonPath $out)
|
|
export PYTHONPATH=$PYTHONPATH:$(toPythonPath $out)
|
|
'';
|
|
|
|
disabled = isPy3k;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "XMPP python library";
|
|
homepage = http://xmpppy.sourceforge.net/;
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.mic92 ];
|
|
};
|
|
}
|