pythonPackages.urwidtrees: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-28 13:04:08 -04:00
parent 410edb293a
commit 36be37f7f2
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 27 additions and 19 deletions

View File

@ -0,0 +1,26 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, urwid
}:
buildPythonPackage rec {
name = "urwidtrees";
version = "1.0";
src = fetchFromGitHub {
owner = "pazz";
repo = "urwidtrees";
rev = "${version}";
sha256 = "03gpcdi45z2idy1fd9zv8v9naivmpfx65hshm8r984k9wklv1dsa";
};
propagatedBuildInputs = [ urwid ];
meta = with stdenv.lib; {
description = "Tree widgets for urwid";
homepage = https://github.com/pazz/urwidtrees;
license = licenses.gpl3;
};
}

View File

@ -4073,25 +4073,7 @@ in {
urwid = callPackage ../development/python-modules/urwid {};
urwidtrees = buildPythonPackage rec {
name = "urwidtrees-${rev}";
rev = "1.0";
src = pkgs.fetchFromGitHub {
owner = "pazz";
repo = "urwidtrees";
inherit rev;
sha256 = "03gpcdi45z2idy1fd9zv8v9naivmpfx65hshm8r984k9wklv1dsa";
};
propagatedBuildInputs = with self; [ urwid ];
meta = {
description = "Tree widgets for urwid";
license = licenses.gpl3;
maintainers = with maintainers; [ ];
};
};
urwidtrees = callPackage ../development/python-modules/urwidtrees { };
user-agents = callPackage ../development/python-modules/user-agents { };