pythonPackages: Add version and pname attributes to packages

This commit is contained in:
adisbladis
2017-11-09 19:26:09 +08:00
committed by Frederik Rietdijk
parent 4ae5f31403
commit d99378654f
79 changed files with 240 additions and 137 deletions

View File

@@ -12,10 +12,12 @@
# the executables of git, mercurial and bazaar.
buildPythonPackage rec {
rev = "2.6";
name = "powerline-${rev}";
version = "2.6";
pname = "powerline";
name = pname + "-" + version;
src = fetchurl {
url = "https://github.com/powerline/powerline/archive/${rev}.tar.gz";
url = "https://github.com/powerline/powerline/archive/${version}.tar.gz";
name = "${name}.tar.gz";
sha256 = "c108f11fe10dc910febb94b87d3abded85d4363fb950366a9e30282b9ba7c272";
};