python.pkgs.unifi: move to separate expression

This commit is contained in:
wisut hantanong 2017-07-15 12:32:41 +07:00 committed by Jörg Thalheim
parent 3e75b0fd12
commit eed3b4991b
2 changed files with 26 additions and 20 deletions

View file

@ -0,0 +1,25 @@
{ stdenv, buildPythonPackage
, fetchPypi, urllib3 }:
buildPythonPackage rec {
pname = "unifi";
version = "1.2.5";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "0prgx01hzs49prrazgxrinm7ivqzy57ch06qm2h7s1p957sazds8";
};
propagatedBuildInputs = [ urllib3 ];
# upstream has no tests
doCheck = false;
meta = with stdenv.lib; {
description = "An API towards the Ubiquity Networks UniFi controller";
homepage = https://pypi.python.org/pypi/unifi/;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
}

View file

@ -256,26 +256,7 @@ in {
hdf5 = pkgs.hdf5.override { zlib = pkgs.zlib; };
};
unifi = buildPythonPackage rec {
name = "unifi-1.2.5";
propagatedBuildInputs = with self; [ urllib3 ];
# upstream has no tests
doCheck = false;
meta = {
description = "An API towards the Ubiquity Networks UniFi controller";
homepage = https://pypi.python.org/pypi/unifi/;
license = licenses.mit;
maintainers = with maintainers; [ peterhoeg ];
};
src = pkgs.fetchurl {
url = "mirror://pypi/u/unifi/${name}.tar.gz";
sha256 = "0prgx01hzs49prrazgxrinm7ivqzy57ch06qm2h7s1p957sazds8";
};
};
unifi = callPackage ../development/python-modules/unifi { };
pyunbound = callPackage ../tools/networking/unbound/python.nix { };