diff --git a/pkgs/development/python-modules/configparser/default.nix b/pkgs/development/python-modules/configparser/default.nix new file mode 100644 index 00000000000..8d1539c241d --- /dev/null +++ b/pkgs/development/python-modules/configparser/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k }: + +buildPythonPackage rec { + pname = "configparser"; + version = "3.5.0"; + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "0fi7vf09vi1588jd8f16a021m5y6ih2hy7rpbjb408xw45qb822k"; + }; + + # No tests available + doCheck = false; + + # Fix issue when used together with other namespace packages + # https://github.com/NixOS/nixpkgs/issues/23855 + patches = [ + ./0001-namespace-fix.patch + ]; + + meta = with stdenv.lib; { + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 141690249eb..abc19802911 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1601,34 +1601,7 @@ in { colander = callPackage ../development/python-modules/colander { }; # Backported version of the ConfigParser library of Python 3.3 - configparser = if isPy3k then null else buildPythonPackage rec { - name = "configparser-${version}"; - version = "3.5.0"; - - # running install_egg_info - # error: [Errno 9] Bad file descriptor: '' - disabled = isPyPy; - - src = pkgs.fetchurl { - url = "mirror://pypi/c/configparser/${name}.tar.gz"; - sha256 = "5308b47021bc2340965c371f0f058cc6971a04502638d4244225c49d80db273a"; - }; - - # No tests available - doCheck = false; - - # Fix issue when used together with other namespace packages - # https://github.com/NixOS/nixpkgs/issues/23855 - patches = [ - ./../development/python-modules/configparser/0001-namespace-fix.patch - ]; - - meta = { - maintainers = [ ]; - platforms = platforms.all; - }; - }; - + configparser = callPackage ../development/python-modules/configparser { }; ColanderAlchemy = buildPythonPackage rec { name = "ColanderAlchemy-${version}";