pythonPackages.netifaces: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 00:54:42 -04:00 committed by Frederik Rietdijk
parent 667782f8f1
commit 0660849bdc
2 changed files with 22 additions and 14 deletions

View file

@ -0,0 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
version = "0.10.6";
pname = "netifaces";
src = fetchPypi {
inherit pname version;
sha256 = "1q7bi5k2r955rlcpspx4salvkkpk28jky67fjbpz2dkdycisak8c";
};
meta = with stdenv.lib; {
homepage = https://alastairs-place.net/projects/netifaces/;
description = "Portable access to network interfaces from Python";
license = licenses.mit;
};
}

View file

@ -2955,20 +2955,7 @@ in {
netaddr = callPackage ../development/python-modules/netaddr { };
netifaces = buildPythonPackage rec {
version = "0.10.6";
name = "netifaces-${version}";
src = pkgs.fetchurl {
url = "mirror://pypi/n/netifaces/${name}.tar.gz";
sha256 = "1q7bi5k2r955rlcpspx4salvkkpk28jky67fjbpz2dkdycisak8c";
};
meta = {
homepage = https://alastairs-place.net/projects/netifaces/;
description = "Portable access to network interfaces from Python";
};
};
netifaces = callPackage ../development/python-modules/netifaces { };
hpack = buildPythonPackage rec {
name = "hpack-${version}";