1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-23 18:37:02 +00:00
nixpkgs/pkgs/development/python-modules/libasyncns/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

26 lines
793 B
Nix

{ stdenv, buildPythonPackage, fetchurl
, libasyncns, pkgconfig }:
buildPythonPackage rec {
pname = "libasyncns-python";
version = "0.7.1";
src = fetchurl {
url = "https://launchpad.net/libasyncns-python/trunk/${version}/+download/libasyncns-python-${version}.tar.bz2";
sha256 = "1q4l71b2h9q756x4pjynp6kczr2d8c1jvbdp982hf7xzv7w5gxqg";
};
patches = [ ./libasyncns-fix-res-consts.patch ];
buildInputs = [ libasyncns ];
nativeBuildInputs = [ pkgconfig ];
doCheck = false; # requires network access
meta = with stdenv.lib; {
description = "libasyncns-python is a python binding for the asynchronous name service query library";
license = licenses.lgpl21;
maintainers = [ maintainers.mic92 ];
homepage = https://launchpad.net/libasyncns-python;
};
}