From f457c74ab3ea65ae597306a95dce081c67d964b0 Mon Sep 17 00:00:00 2001 From: Langston Barrett Date: Thu, 28 Jul 2016 13:00:13 +0200 Subject: [PATCH] yapf: init at 0.11.0 --- pkgs/top-level/python-packages.nix | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6a103af4015a..6bc06e1e02a1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7962,9 +7962,9 @@ in modules // { }; }; - pytools = buildPythonPackage rec { - name = "pytools-${version}"; - version = "2016.2.1"; + pytools = buildPythonPackage rec { + name = "pytools-${version}"; + version = "2016.2.1"; src = pkgs.fetchFromGitHub { owner = "inducer"; @@ -7983,7 +7983,7 @@ in modules // { ]; meta = { - homepage = https://github.com/inducer/pytools/; + homepage = https://github.com/inducer/pytools/; description = "Miscellaneous Python lifesavers."; license = licenses.mit; maintainers = with maintainers; [ artuuge ]; @@ -13957,7 +13957,7 @@ in modules // { nipy = buildPythonPackage rec { version = "0.4.0"; name = "nipy-${version}"; - + disabled = pythonOlder "2.6"; checkPhase = '' # wants to be run in a different directory @@ -28805,4 +28805,21 @@ in modules // { --prefix PYTHONPATH : "$PYTHONPATH" ''; }; + + 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"; + }; + }; }