python.pkgs.unifi: move to separate expression
This commit is contained in:
parent
3e75b0fd12
commit
eed3b4991b
|
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -256,26 +256,7 @@ in {
|
||||||
hdf5 = pkgs.hdf5.override { zlib = pkgs.zlib; };
|
hdf5 = pkgs.hdf5.override { zlib = pkgs.zlib; };
|
||||||
};
|
};
|
||||||
|
|
||||||
unifi = buildPythonPackage rec {
|
unifi = callPackage ../development/python-modules/unifi { };
|
||||||
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";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pyunbound = callPackage ../tools/networking/unbound/python.nix { };
|
pyunbound = callPackage ../tools/networking/unbound/python.nix { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue