python.pkgs.python-editor : move to separate expression

This commit is contained in:
wisut hantanong 2017-07-19 17:41:57 +07:00
parent ff6797e8aa
commit 84c3055620
2 changed files with 18 additions and 14 deletions

View File

@ -0,0 +1,17 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
version = "0.4";
pname = "python-editor";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "1gykxn16anmsbcrwhx3rrhwjif95mmwvq9gjcrr9bbzkdc8sf8a4";
};
meta = with stdenv.lib; {
description = "A library that provides the `editor` module for programmatically";
homepage = "https://github.com/fmoo/python-editor";
};
}

View File

@ -319,20 +319,7 @@ in {
asgi_redis = callPackage ../development/python-modules/asgi_redis { };
python-editor = buildPythonPackage rec {
name = "python-editor-${version}";
version = "0.4";
src = pkgs.fetchurl {
url = "mirror://pypi/p/python-editor/${name}.tar.gz";
sha256 = "1gykxn16anmsbcrwhx3rrhwjif95mmwvq9gjcrr9bbzkdc8sf8a4";
};
meta = with stdenv.lib; {
description = "`python-editor` is a library that provides the `editor` module for programmatically";
homepage = "https://github.com/fmoo/python-editor";
};
};
python-editor = callPackage ../development/python-modules/python-editor { };
python-gnupg = callPackage ../development/python-modules/python-gnupg {};