mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +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`.
32 lines
895 B
Nix
32 lines
895 B
Nix
{ stdenv, buildPythonPackage, fetchzip, pyopenssl, python }:
|
|
|
|
let
|
|
pname = "nbxmpp";
|
|
version = "0.6.6";
|
|
name = "${pname}-${version}";
|
|
in buildPythonPackage rec {
|
|
inherit pname version;
|
|
# Tests aren't included in PyPI tarball.
|
|
src = fetchzip {
|
|
name = "${name}.tar.bz2";
|
|
url = "https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?"
|
|
+ "ref=${name}";
|
|
sha256 = "10n7z613p00q15dplsvdrz11s9yq26jy2qack6nd8k7fivfhlcmz";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyopenssl ];
|
|
|
|
checkPhase = ''
|
|
# Disable tests requiring networking
|
|
echo "" > test/unit/test_xmpp_transports_nb2.py
|
|
${python.executable} test/runtests.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://dev.gajim.org/gajim/python-nbxmpp";
|
|
description = "Non-blocking Jabber/XMPP module";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|