From ddce81ce8a1ade831c82e17c100bac1f40a1737e Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 13:29:36 -0400 Subject: [PATCH] pythonPackages.pyxdg: refactor move to python-modules --- .../python-modules/pyxdg/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +------------- 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/pyxdg/default.nix diff --git a/pkgs/development/python-modules/pyxdg/default.nix b/pkgs/development/python-modules/pyxdg/default.nix new file mode 100644 index 000000000000..31b2ff4e9883 --- /dev/null +++ b/pkgs/development/python-modules/pyxdg/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "pyxdg"; + version = "0.25"; + + src = fetchPypi { + inherit pname version; + sha256 = "81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d"; + }; + + # error: invalid command 'test' + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://freedesktop.org/wiki/Software/pyxdg; + description = "Contains implementations of freedesktop.org standards"; + license = licenses.lgpl2; + maintainers = with maintainers; [ domenkozar ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 91e8948d2f18..ca104f8f686f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2215,24 +2215,7 @@ in { distutils_extra = callPackage ../development/python-modules/distutils_extra { }; - pyxdg = buildPythonPackage rec { - name = "pyxdg-0.25"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pyxdg/${name}.tar.gz"; - sha256 = "81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d"; - }; - - # error: invalid command 'test' - doCheck = false; - - meta = { - homepage = http://freedesktop.org/wiki/Software/pyxdg; - description = "Contains implementations of freedesktop.org standards"; - license = licenses.lgpl2; - maintainers = with maintainers; [ domenkozar ]; - }; - }; + pyxdg = callPackage ../development/python-modules/pyxdg { }; chardet = callPackage ../development/python-modules/chardet { };