pythonPackages.pydns: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 09:38:59 -04:00
parent 17da4404ca
commit ac2e2a3d38
No known key found for this signature in database
GPG key ID: 9ED59B0AB1EAF573
2 changed files with 24 additions and 12 deletions

View file

@ -0,0 +1,23 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pydns";
version = "2.3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0qnv7i9824nb5h9psj0rwzjyprwgfiwh5s5raa9avbqazy5hv5pi";
};
doCheck = false;
meta = with stdenv.lib; {
description = "Python DNS library";
homepage = http://pydns.sourceforge.net/;
license = licenses.psfl;
};
}

View file

@ -3800,18 +3800,7 @@ in {
let
py3 = callPackage ../development/python-modules/py3dns { };
py2 = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pydns";
version = "2.3.6";
src = fetchPypi {
inherit pname version;
sha256 = "0qnv7i9824nb5h9psj0rwzjyprwgfiwh5s5raa9avbqazy5hv5pi";
};
doCheck = false;
};
py2 = callPackage ../development/python-modules/pydns { };
in if isPy3k then py3 else py2;
pythondaemon = callPackage ../development/python-modules/python-daemon { };