pythonPackages.py3dns: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-27 09:35:09 -04:00
parent 3707ee9b5f
commit 17da4404ca
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 31 additions and 19 deletions

View File

@ -0,0 +1,30 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "py3dns";
version = "3.1.1a";
src = fetchPypi {
inherit pname version;
sha256 = "0z0qmx9j1ivpgg54gqqmh42ljnzxaychc5inz2gbgv0vls765smz";
};
preConfigure = ''
sed -i \
-e '/import DNS/d' \
-e 's/DNS.__version__/"${version}"/g' \
setup.py
'';
doCheck = false;
meta = with stdenv.lib; {
description = "Python 3 DNS library";
homepage = https://launchpad.net/py3dns;
license = licenses.psfl;
};
}

View File

@ -3798,25 +3798,7 @@ in {
pydns =
let
py3 = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "py3dns";
version = "3.1.1a";
src = fetchPypi {
inherit pname version;
sha256 = "0z0qmx9j1ivpgg54gqqmh42ljnzxaychc5inz2gbgv0vls765smz";
};
preConfigure = ''
sed -i \
-e '/import DNS/d' \
-e 's/DNS.__version__/"${version}"/g' \
setup.py
'';
doCheck = false;
};
py3 = callPackage ../development/python-modules/py3dns { };
py2 = buildPythonPackage rec {
name = "${pname}-${version}";