python.pkgs.yapf: move to separate expression

fixes #27379
This commit is contained in:
wisut hantanong 2017-07-15 16:53:43 +07:00 committed by Jörg Thalheim
parent 5529758791
commit a5d75f0f18
2 changed files with 21 additions and 16 deletions

View file

@ -0,0 +1,20 @@
{ stdenv, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "yapf";
version = "0.11.0";
name = "${pname}-${version}";
src = fetchPypi {
inherit pname version;
sha256 = "14kb9gxw39zhvrijhp066b4bm6bgv35iw56c394y4dyczpha0dij";
};
meta = with stdenv.lib; {
description = "A formatter for Python code.";
homepage = "https://github.com/google/yapf";
license = licenses.asl20;
maintainers = with maintainers; [ siddharthist ];
};
}

View file

@ -29752,22 +29752,7 @@ EOF
};
};
yapf = buildPythonPackage rec {
name = "yapf-${version}";
version = "0.11.0";
meta = {
description = "A formatter for Python code.";
homepage = "https://github.com/google/yapf";
license = licenses.asl20;
maintainers = with maintainers; [ siddharthist ];
};
src = pkgs.fetchurl {
url = "mirror://pypi/y/yapf/${name}.tar.gz";
sha256 = "14kb9gxw39zhvrijhp066b4bm6bgv35iw56c394y4dyczpha0dij";
};
};
yapf = callPackage ../development/python-modules/yapf { };
autobahn = callPackage ../development/python-modules/autobahn { };