diff --git a/pkgs/development/python-modules/nameparser/default.nix b/pkgs/development/python-modules/nameparser/default.nix new file mode 100644 index 000000000000..a3e67fa7b985 --- /dev/null +++ b/pkgs/development/python-modules/nameparser/default.nix @@ -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; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e16a15b0b910..d903dc78a69d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };