diff --git a/pkgs/development/python-modules/tarman/default.nix b/pkgs/development/python-modules/tarman/default.nix new file mode 100644 index 000000000000..305daecc8de5 --- /dev/null +++ b/pkgs/development/python-modules/tarman/default.nix @@ -0,0 +1,34 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, isPy3k +, unittest2 +, nose +, mock +, libarchive +}: + +buildPythonPackage rec { + version = "0.1.3"; + pname = "tarman"; + + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "0ri6gj883k042xaxa2d5ymmhbw2bfcxdzhh4bz7700ibxwxxj62h"; + }; + + buildInputs = [ unittest2 nose mock ]; + propagatedBuildInputs = [ libarchive ]; + + # tests are still failing + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/matejc/tarman; + description = "Archive manager with curses interface"; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 032c1ced8d15..df0c57efcd2c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4234,24 +4234,7 @@ in { tunigo = callPackage ../development/python-modules/tunigo { }; - tarman = buildPythonPackage rec { - version = "0.1.3"; - name = "tarman-${version}"; - - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/t/tarman/tarman-${version}.zip"; - sha256 = "0ri6gj883k042xaxa2d5ymmhbw2bfcxdzhh4bz7700ibxwxxj62h"; - }; - - buildInputs = with self; [ unittest2 nose mock ]; - propagatedBuildInputs = with self; [ libarchive ]; - - # tests are still failing - doCheck = false; - }; - + tarman = callPackage ../development/python-modules/tarman { }; libarchive = self.python-libarchive; # The latter is the name upstream uses python-libarchive = buildPythonPackage rec {