pythonPackages.netifaces: refactor move to python-modules
This commit is contained in:
parent
667782f8f1
commit
0660849bdc
2 changed files with 22 additions and 14 deletions
21
pkgs/development/python-modules/netifaces/default.nix
Normal file
21
pkgs/development/python-modules/netifaces/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue