diff --git a/pkgs/development/python-modules/iniparse/default.nix b/pkgs/development/python-modules/iniparse/default.nix new file mode 100644 index 000000000000..e0c2fd765c98 --- /dev/null +++ b/pkgs/development/python-modules/iniparse/default.nix @@ -0,0 +1,30 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, python +}: + +buildPythonPackage rec { + pname = "iniparse"; + version = "0.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0m60k46vr03x68jckachzsipav0bwhhnqb8715hm1cngs89fxhdb"; + }; + + checkPhase = '' + ${python.interpreter} runtests.py + ''; + + # Does not install tests + doCheck = false; + + meta = with stdenv.lib; { + description = "Accessing and Modifying INI files"; + homepage = http://code.google.com/p/iniparse/; + license = licenses.mit; + maintainers = with maintainers; [ danbst ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3170da02b3f4..d1fb19f8a7d4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1900,29 +1900,7 @@ in { itsdangerous = callPackage ../development/python-modules/itsdangerous { }; - iniparse = buildPythonPackage rec { - - name = "iniparse-${version}"; - version = "0.4"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/iniparse/iniparse-${version}.tar.gz"; - sha256 = "0m60k46vr03x68jckachzsipav0bwhhnqb8715hm1cngs89fxhdb"; - }; - - checkPhase = '' - ${python.interpreter} runtests.py - ''; - - # Does not install tests - doCheck = false; - - meta = with stdenv.lib; { - description = "Accessing and Modifying INI files"; - license = licenses.mit; - maintainers = with maintainers; [ danbst ]; - }; - }; + iniparse = callPackage ../development/python-modules/iniparse { }; i3-py = buildPythonPackage rec { version = "0.6.4";