python.pkgs.basiciw: move expression

This commit is contained in:
Frederik Rietdijk 2018-08-04 13:30:24 +02:00
parent 455bf6d875
commit e002b543af
2 changed files with 32 additions and 20 deletions

View File

@ -0,0 +1,30 @@
{ lib
, buildPythonPackage
, fetchPypi
, gcc
, wirelesstools
, isPy27
, isPyPy
}:
buildPythonPackage rec {
pname = "basiciw";
version = "0.2.2";
disabled = isPy27 || isPyPy;
src = fetchPypi {
inherit pname version;
sha256 = "1ajmflvvlkflrcmqmkrx0zaira84z8kv4ssb2jprfwvjh8vfkysb";
};
buildInputs = [ gcc ];
propagatedBuildInputs = [ wirelesstools ];
meta = {
description = "Get info about wireless interfaces using libiw";
homepage = https://github.com/enkore/basiciw;
platforms = lib.platforms.linux;
license = lib.licenses.gpl2;
};
}

View File

@ -925,26 +925,8 @@ in {
babelfish = callPackage ../development/python-modules/babelfish {}; babelfish = callPackage ../development/python-modules/babelfish {};
basiciw = buildPythonPackage rec { basiciw = callPackage ../development/python-modules/basiciw {
name = "${pname}-${version}"; inherit (pkgs) gcc wirelesstools;
version = "0.2.2";
pname = "basiciw";
disabled = isPy27 || isPyPy;
src = pkgs.fetchurl {
url = "mirror://pypi/b/${pname}/${name}.tar.gz";
sha256 = "1ajmflvvlkflrcmqmkrx0zaira84z8kv4ssb2jprfwvjh8vfkysb";
};
buildInputs = [ pkgs.gcc ];
propagatedBuildInputs = [ pkgs.wirelesstools ];
meta = {
description = "Get info about wireless interfaces using libiw";
homepage = https://github.com/enkore/basiciw;
platforms = platforms.linux;
license = licenses.gpl2;
};
}; };
batinfo = callPackage ../development/python-modules/batinfo {}; batinfo = callPackage ../development/python-modules/batinfo {};