3
0
Fork 0
forked from mirrors/nixpkgs

urwid: move into separate file, use fetchPypi instead of fetchurl

This commit is contained in:
Florian Klink 2017-10-29 12:12:42 +01:00
parent 11bba268fe
commit c463a8e0c5
2 changed files with 21 additions and 19 deletions

View file

@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage (rec {
pname = "urwid";
version = "1.3.1";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
};
meta = with stdenv.lib; {
description = "A full-featured console (xterm et al.) user interface library";
homepage = http://excess.org/urwid;
repositories.git = git://github.com/wardi/urwid.git;
license = licenses.lgpl21;
maintainers = with maintainers; [ garbas ];
};
})

View file

@ -21977,25 +21977,7 @@ in {
urlgrabber = callPackage ../development/python-modules/urlgrabber {};
urwid = buildPythonPackage (rec {
name = "urwid-1.3.1";
# multiple: NameError: name 'evl' is not defined
doCheck = false;
src = pkgs.fetchurl {
url = "mirror://pypi/u/urwid/${name}.tar.gz";
sha256 = "18cnd1wdjcas08x5qwa5ayw6jsfcn33w4d9f7q3s29fy6qzc1kng";
};
meta = {
description = "A full-featured console (xterm et al.) user interface library";
homepage = http://excess.org/urwid;
repositories.git = git://github.com/wardi/urwid.git;
license = licenses.lgpl21;
maintainers = with maintainers; [ garbas ];
};
});
urwid = callPackage ../development/python-modules/urwid {};
urwidtrees = buildPythonPackage rec {
name = "urwidtrees-${rev}";