From b5bf9f306359401f411a08f5d03b7413c57a3120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 16 Mar 2019 10:20:44 +0100 Subject: [PATCH] python.pkgs.agate-excel: 0.2.2 -> 0.2.3 (cherry picked from commit b1454f587ee86516994d7f79ee99f200c35203f3) --- .../python-modules/agate-excel/default.nix | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/agate-excel/default.nix b/pkgs/development/python-modules/agate-excel/default.nix index 24287039abdce..4636f51d4bd1d 100644 --- a/pkgs/development/python-modules/agate-excel/default.nix +++ b/pkgs/development/python-modules/agate-excel/default.nix @@ -1,21 +1,28 @@ -{ stdenv, fetchPypi, buildPythonPackage, agate, openpyxl, xlrd }: +{ lib, fetchPypi, fetchpatch, buildPythonPackage +, agate, openpyxl, xlrd, nose +}: buildPythonPackage rec { - pname = "agate-excel"; - version = "0.2.2"; + pname = "agate-excel"; + version = "0.2.3"; - src = fetchPypi { - inherit pname version; - sha256 = "8923f71ee2b5b7b21e52fb314a769b28fb902f647534f5cbbb41991d8710f4c7"; - }; + src = fetchPypi { + inherit pname version; + sha256 = "8f255ef2c87c436b7132049e1dd86c8e08bf82d8c773aea86f3069b461a17d52"; + }; - propagatedBuildInputs = [ agate openpyxl xlrd ]; + propagatedBuildInputs = [ agate openpyxl xlrd ]; - meta = with stdenv.lib; { - description = "Adds read support for excel files to agate"; - homepage = "https://github.com/wireservice/agate-excel"; - license = licenses.mit; - maintainers = with maintainers; [ vrthra ]; - }; + checkInputs = [ nose ]; + checkPhase = '' + nosetests + ''; + + meta = with lib; { + description = "Adds read support for excel files to agate"; + homepage = https://github.com/wireservice/agate-excel; + license = licenses.mit; + maintainers = with maintainers; [ vrthra ]; + }; }