pythonPackages.nameparser: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 00:45:59 -04:00 committed by Frederik Rietdijk
parent f2329dc489
commit 17ef9059e9
2 changed files with 22 additions and 15 deletions

View file

@ -0,0 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "nameparser";
version = "0.3.4";
src = fetchPypi {
inherit pname version;
sha256 = "1zi94m99ziwwd6kkip3w2xpnl05r2cfv9iq68inz7np81c3g8vag";
};
meta = with stdenv.lib; {
description = "A simple Python module for parsing human names into their individual components";
homepage = https://github.com/derek73/python-nameparser;
license = licenses.lgpl21Plus;
};
}

View file

@ -2939,21 +2939,7 @@ in {
});
nameparser = buildPythonPackage rec {
name = "nameparser-${version}";
version = "0.3.4";
src = pkgs.fetchurl {
url = "mirror://pypi/n/nameparser/${name}.tar.gz";
sha256 = "1zi94m99ziwwd6kkip3w2xpnl05r2cfv9iq68inz7np81c3g8vag";
};
meta = {
description = "A simple Python module for parsing human names into their individual components";
homepage = https://github.com/derek73/python-nameparser;
license = licenses.lgpl21Plus;
};
};
nameparser = callPackage ../development/python-modules/nameparser { };
nbconvert = callPackage ../development/python-modules/nbconvert { };